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

Turn off SSL certificate verification if we're using servicenet.

This commit is contained in:
H. Wade Minter 2011-03-18 15:17:46 +00:00 committed by H. Wade Minter
parent 3ae4a3caab
commit 22982e54d2
3 changed files with 3 additions and 0 deletions

View file

@ -60,6 +60,7 @@ module Fog
@path = uri.path
@port = uri.port
@scheme = uri.scheme
Excon.ssl_verify_peer = false if options[:rackspace_servicenet] == true
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", options[:persistent])
end

View file

@ -88,6 +88,7 @@ module Fog
@rackspace_auth_url = options[:rackspace_auth_url]
@rackspace_servicenet = options[:rackspace_servicenet]
authenticate
Excon.ssl_verify_peer = false if options[:rackspace_servicenet] == true
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", options[:persistent])
end

View file

@ -89,6 +89,7 @@ module Fog
@path = uri.path
@port = uri.port
@scheme = uri.scheme
Excon.ssl_verify_peer = false if options[:rackspace_servicenet] == true
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", options[:persistent])
end