diff --git a/lib/fog/openstack/identity.rb b/lib/fog/openstack/identity.rb index 3705750ed..daec8f440 100644 --- a/lib/fog/openstack/identity.rb +++ b/lib/fog/openstack/identity.rb @@ -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