mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws][storage] fix mock region defaulting
This commit is contained in:
parent
e95c17c8fa
commit
cbacca9df1
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ module Fog
|
||||||
|
|
||||||
def initialize(options={})
|
def initialize(options={})
|
||||||
@aws_access_key_id = options[:aws_access_key_id]
|
@aws_access_key_id = options[:aws_access_key_id]
|
||||||
@region = options[:region] || 'us-east-1'
|
options[:region] ||= 'us-east-1'
|
||||||
@host = options[:host] || case options[:region]
|
@host = options[:host] || case options[:region]
|
||||||
when 'eu-west-1'
|
when 'eu-west-1'
|
||||||
's3-eu-west-1.amazonaws.com'
|
's3-eu-west-1.amazonaws.com'
|
||||||
|
@ -104,7 +104,7 @@ module Fog
|
||||||
else
|
else
|
||||||
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
||||||
end
|
end
|
||||||
@data = self.class.data[@region][@aws_access_key_id]
|
@data = self.class.data[options[:region]][@aws_access_key_id]
|
||||||
end
|
end
|
||||||
|
|
||||||
def signature(params)
|
def signature(params)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue