lib/fog/rackspace/load_balancers.rb in fog-1.21.0 vs lib/fog/rackspace/load_balancers.rb in fog-1.22.0
- old
+ new
@@ -117,11 +117,11 @@
authenticate
deprecation_warnings(options)
@persistent = options[:persistent] || false
- @connection = Fog::XML::Connection.new(endpoint_uri.to_s, @persistent, @connection_options)
+ @connection = Fog::Core::Connection.new(endpoint_uri.to_s, @persistent, @connection_options)
end
def request(params, parse_json = true)
super
rescue Excon::Errors::NotFound => error
@@ -188,10 +188,10 @@
regions = @identity_service.service_catalog.display_service_regions(service_name)
Fog::Logger.deprecation("Please specify region using :rackspace_region rather than :rackspace_endpoint. Valid regions for :rackspace_region are #{regions}.")
end
unless options[:rackspace_region]
- Fog::Logger.deprecation("Default region support will be removed in an upcoming release. Please switch to manually setting your endpoint. This requires settng the :rackspace_region option")
+ Fog::Logger.deprecation("Default region support will be removed in an upcoming release. Please switch to manually setting your endpoint. This requires setting the :rackspace_region option")
end
end
def append_tenant_v1(credentials)
account_id = credentials['X-Server-Management-Url'].match(/.*\/([\d]+)$/)[1]