diff --git a/lib/fog/openstack/compute.rb b/lib/fog/openstack/compute.rb index 3c924c7e7..695983cc6 100644 --- a/lib/fog/openstack/compute.rb +++ b/lib/fog/openstack/compute.rb @@ -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 diff --git a/lib/fog/openstack/identity.rb b/lib/fog/openstack/identity.rb index 209854eb1..5979f5fde 100644 --- a/lib/fog/openstack/identity.rb +++ b/lib/fog/openstack/identity.rb @@ -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 diff --git a/lib/fog/openstack/image.rb b/lib/fog/openstack/image.rb index 34390576c..6a2dc73cc 100644 --- a/lib/fog/openstack/image.rb +++ b/lib/fog/openstack/image.rb @@ -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