lib/fog/aws/ecs.rb in fog-aws-0.7.4 vs lib/fog/aws/ecs.rb in fog-aws-0.7.5

- old
+ new

@@ -161,12 +161,10 @@ def initialize(options={}) @use_iam_profile = options[:use_iam_profile] @region = options[:region] || 'us-east-1' - unless ['ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1'].include?(@region) - raise ArgumentError, "Unknown region: #{@region.inspect}" - end + Fog::AWS.validate_region!(@region) setup_credentials(options) end def data