mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute|aws] Fix default region when mocking
This commit is contained in:
parent
a30c6c9970
commit
59a46d8299
1 changed files with 4 additions and 4 deletions
|
@ -141,12 +141,12 @@ module Fog
|
|||
|
||||
@aws_access_key_id = options[:aws_access_key_id]
|
||||
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1'].include?(options[:region])
|
||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||
end
|
||||
|
||||
@region = options[:region] || 'us-east-1'
|
||||
|
||||
unless ['ap-northeast-1', 'ap-southeast-1', 'eu-west-1', 'us-east-1', 'us-west-1'].include?(@region)
|
||||
raise ArgumentError, "Unknown region: #{@region.inspect}"
|
||||
end
|
||||
|
||||
@data = self.class.data[@region][@aws_access_key_id]
|
||||
@owner_id = @data[:owner_id]
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue