1
0
Fork 0
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:
geemus 2012-03-20 11:41:13 -05:00
parent 4846a16053
commit d93b70a7a4

View file

@ -76,7 +76,12 @@ module Fog
@nil_string = options[:nil_string]|| 'nil'
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] || '/'
@persistent = options[:persistent] || false
@port = options[:port] || 443