1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[openstack|identity] Updated current user id for identity

This commit is contained in:
Alfonso Juan Dillera 2012-03-04 20:55:17 +08:00 committed by Nelvin Driz
parent 4b3cb2a984
commit df54e750a3

View file

@ -8,7 +8,7 @@ module Fog
requires :openstack_auth_url
recognizes :openstack_auth_token, :openstack_management_url, :persistent,
:openstack_service_name, :openstack_tenant,
:openstack_api_key, :openstack_username
:openstack_api_key, :openstack_username, :openstack_current_user_id
model_path 'fog/openstack/models/identity'
model :tenant
@ -83,7 +83,6 @@ module Fog
def initialize(options={})
require 'multi_json'
attr_reader :openstack_current_user_id
@openstack_auth_token = options[:openstack_auth_token]
@ -105,6 +104,8 @@ module Fog
@connection_options = options[:connection_options] || {}
@openstack_current_user_id = options[:openstack_current_user_id]
authenticate
@persistent = options[:persistent] || false
@ -115,7 +116,8 @@ module Fog
{ :provider => 'openstack',
:openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @auth_token,
:openstack_management_url => @openstack_management_url }
:openstack_management_url => @openstack_management_url,
:openstack_current_user_id => @openstack_current_user_id}
end
def reload