mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|simpledb] fix region/host for us-east-1
This commit is contained in:
parent
4846a16053
commit
d93b70a7a4
1 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,12 @@ module Fog
|
||||||
@nil_string = options[:nil_string]|| 'nil'
|
@nil_string = options[:nil_string]|| 'nil'
|
||||||
|
|
||||||
options[:region] ||= 'us-east-1'
|
options[:region] ||= 'us-east-1'
|
||||||
@host = options[:host] || "sdb.#{options[:region]}.amazonaws.com"
|
@host = options[:host] || case options[:region]
|
||||||
|
when 'us-east-1'
|
||||||
|
'sdb.amazonaws.com'
|
||||||
|
else
|
||||||
|
"sdb.#{options[:region]}.amazonaws.com"
|
||||||
|
end
|
||||||
@path = options[:path] || '/'
|
@path = options[:path] || '/'
|
||||||
@persistent = options[:persistent] || false
|
@persistent = options[:persistent] || false
|
||||||
@port = options[:port] || 443
|
@port = options[:port] || 443
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue