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:
parent
3ae4a3caab
commit
22982e54d2
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue