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

[openstack|identity] Fix Identity Authentication Conditions on Endpoint

Detection
This commit is contained in:
Nelvin Driz 2012-03-04 16:07:07 +08:00
parent 4910768827
commit 9bfdf11dcf
2 changed files with 4 additions and 4 deletions

View file

@ -116,7 +116,7 @@ module Fog
end
mgmt_url = svc['endpoints'].detect{|x| x[@endpoint_type]}[@endpoint_type]
identity_url = identity_svc['endpoints'].detect{|x| x['publicURL']}['publicURL']
identity_url = identity_svc['endpoints'].detect{|x| x['publicURL']}['publicURL'] if identity_svc
token = body['access']['token']['id']
{ :token => token,

View file

@ -89,9 +89,9 @@ module Fog
end
def credentials
{ :provider => 'openstack',
:openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @openstack_auth_token,
{ :provider => 'openstack',
:openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @openstack_auth_token,
:openstack_management_url => @management_url}
end