mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Servicenet is meaningless on the CDN.
This commit is contained in:
parent
3f4478f63e
commit
120984fe49
1 changed files with 2 additions and 3 deletions
|
@ -3,7 +3,7 @@ module Fog
|
|||
class CDN < Fog::Service
|
||||
|
||||
requires :rackspace_api_key, :rackspace_username
|
||||
recognizes :rackspace_auth_url, :rackspace_servicenet, :persistent
|
||||
recognizes :rackspace_auth_url, :persistent
|
||||
recognizes :provider # remove post deprecation
|
||||
|
||||
model_path 'fog/cdn/models/rackspace'
|
||||
|
@ -56,11 +56,10 @@ module Fog
|
|||
@auth_token = credentials['X-Auth-Token']
|
||||
|
||||
uri = URI.parse(credentials['X-CDN-Management-Url'])
|
||||
@host = options[:rackspace_servicenet] == true ? "snet-#{uri.host}" : uri.host
|
||||
@host = uri.host
|
||||
@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…
Reference in a new issue