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:
parent
b1dee61bae
commit
88beffdf64
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue