lib/fog/aws/sns.rb in fog-aws-0.7.4 vs lib/fog/aws/sns.rb in fog-aws-0.7.5
- old
+ new
@@ -45,12 +45,10 @@
@region = options[:region] || 'us-east-1'
@aws_access_key_id = options[:aws_access_key_id]
@account_id = Fog::AWS::Mock.owner_id
@module = "sns"
- 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)
end
def data
self.class.data[@region][@aws_access_key_id]
end