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

[rackspace] updated to pass string rather and a uri to Fog::Connection

This commit is contained in:
Kyle Rames 2013-03-01 14:46:14 -06:00
parent b1dee61bae
commit 88beffdf64
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ module Fog
def initialize(url, persistent=false, params={})
Excon.defaults[:headers]['User-Agent'] ||= "fog/#{Fog::VERSION}"
@excon = Excon.new(url.to_s, params)
@excon = Excon.new(url, params)
@persistent = persistent
end

View file

@ -111,7 +111,7 @@ module Fog
@persistent = options[:persistent] || false
if endpoint_uri
@connection = Fog::Connection.new(endpoint_uri, @persistent, @connection_options)
@connection = Fog::Connection.new(endpoint_uri.to_s, @persistent, @connection_options)
@enabled = true
end
end

View file

@ -113,7 +113,7 @@ module Fog
deprecation_warnings(options)
@persistent = options[:persistent] || false
@connection = Fog::Connection.new(endpoint_uri, @persistent, @connection_options)
@connection = Fog::Connection.new(endpoint_uri.to_s, @persistent, @connection_options)
end
def deprecation_warnings(options)

View file

@ -112,7 +112,7 @@ module Fog
@auth_token = authenticate
@persistent = options[:persistent] || false
Excon.defaults[:ssl_verify_peer] = false if service_net?
@connection = Fog::Connection.new(endpoint_uri, @persistent, @connection_options)
@connection = Fog::Connection.new(endpoint_uri.to_s, @persistent, @connection_options)
end
def account