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:
parent
4910768827
commit
9bfdf11dcf
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue