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

[openstack|compute] Fix Compute Identity Endpoint Credential Export

This commit is contained in:
Nelvin Driz 2012-03-04 16:37:34 +08:00
parent a76c244eba
commit cc44845bdb

View file

@ -192,6 +192,7 @@ module Fog
def initialize(options={}) def initialize(options={})
@openstack_auth_token = options[:openstack_auth_token] @openstack_auth_token = options[:openstack_auth_token]
@openstack_identity_public_endpoint = options[:openstack_identity_endpoint]
unless @openstack_auth_token unless @openstack_auth_token
missing_credentials = Array.new missing_credentials = Array.new
@ -222,7 +223,8 @@ module Fog
{ :provider => 'openstack', { :provider => 'openstack',
:openstack_auth_url => @openstack_auth_uri.to_s, :openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @auth_token, :openstack_auth_token => @auth_token,
:openstack_management_url => @openstack_management_url } :openstack_management_url => @openstack_management_url,
:openstack_identity_endpoint => @openstack_identity_public_endpoint }
end end
def reload def reload