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

[openstack] Add Export of Credentials

This commit is contained in:
Nelvin Driz 2012-03-04 15:55:11 +08:00
parent c643bd8e03
commit 4910768827
3 changed files with 21 additions and 0 deletions

View file

@ -218,6 +218,13 @@ module Fog
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
end
def credentials
{ :provider => 'openstack',
:openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @openstack_auth_token,
:openstack_management_url => @management_url}
end
def reload
@connection.reset
end

View file

@ -110,6 +110,13 @@ module Fog
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
end
def credentials
{ :provider => 'openstack',
:openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @openstack_auth_token,
:openstack_management_url => @management_url}
end
def reload
@connection.reset
end

View file

@ -88,6 +88,13 @@ module Fog
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
end
def credentials
{ :provider => 'openstack',
:openstack_auth_url => @openstack_auth_uri.to_s,
:openstack_auth_token => @openstack_auth_token,
:openstack_management_url => @management_url}
end
def reload
@connection.reset
end