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

Merge pull request #3659 from Ladas/openstack_missing_passing_of_unscoped_token

Openstack missing passing of unscoped_token
This commit is contained in:
Wesley Beary 2015-08-14 10:13:42 -05:00
commit 03c410b9a0

View file

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