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

Openstack missing passing of unscoped_token

In the 803d46791f
refactoring, the unscoped token passing to credentials has
been deleted. So adding unscoped token to 2 missing places.

Plus aligning the =>, so the code is more readable
This commit is contained in:
Ladislav Smola 2015-08-14 11:13:04 +02:00
parent 803d46791f
commit 7793c7257d

View file

@ -97,13 +97,15 @@ module Fog
end end
def credentials def credentials
options = { :provider => 'openstack', options = {
:openstack_auth_url => @openstack_auth_uri.to_s, :provider => 'openstack',
:openstack_auth_token => @auth_token, :openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @auth_token,
:openstack_identity_endpoint => @openstack_identity_public_endpoint, :openstack_identity_endpoint => @openstack_identity_public_endpoint,
:current_user => @current_user, :current_user => @current_user,
:current_user_id => @current_user_id, :current_user_id => @current_user_id,
:current_tenant => @current_tenant } :current_tenant => @current_tenant,
:unscoped_token => @unscoped_token}
openstack_options.merge options openstack_options.merge options
end end
@ -139,6 +141,7 @@ module Fog
@openstack_must_reauthenticate = false @openstack_must_reauthenticate = false
@auth_token = credentials[:token] @auth_token = credentials[:token]
@openstack_management_url = credentials[:server_management_url] @openstack_management_url = credentials[:server_management_url]
@unscoped_token = credentials[:unscoped_token]
else else
@auth_token = @openstack_auth_token @auth_token = @openstack_auth_token
end end