lib/fog/rackspace/databases.rb in fog-maestrodev-1.19.0.20140212012611 vs lib/fog/rackspace/databases.rb in fog-maestrodev-1.20.0.20140305101305

- old
+ new

@@ -1,6 +1,6 @@ -require File.expand_path(File.join(File.dirname(__FILE__), '..', 'rackspace')) +require 'fog/rackspace/core' module Fog module Rackspace class Databases < Fog::Service include Fog::Rackspace::Errors @@ -140,9 +140,13 @@ Fog::Logger.deprecation("The :rackspace_endpoint option is deprecated. Please use :rackspace_database_url for custom endpoints") if options[:rackspace_endpoint] if [DFW_ENDPOINT, ORD_ENDPOINT, LON_ENDPOINT].include?(@rackspace_endpoint) && v2_authentication? regions = @identity_service.service_catalog.display_service_regions(service_name) Fog::Logger.deprecation("Please specify region using :rackspace_region rather than :rackspace_endpoint. Valid region 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") end end def append_tenant_v1(credentials) account_id = credentials['X-Server-Management-Url'].match(/.*\/([\d]+)$/)[1]