mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Used the amazon published endpoints for sqs as defined at http://docs.amazonwebservices.com/general/latest/gr/rande.html#sqs_region
This commit is contained in:
parent
7f5d903387
commit
fedd31d895
1 changed files with 2 additions and 6 deletions
|
@ -83,12 +83,8 @@ module Fog
|
|||
setup_credentials(options)
|
||||
@connection_options = options[:connection_options] || {}
|
||||
options[:region] ||= 'us-east-1'
|
||||
@host = options[:host] || case options[:region]
|
||||
when 'us-east-1'
|
||||
'queue.amazonaws.com'
|
||||
else
|
||||
"#{options[:region]}.queue.amazonaws.com"
|
||||
end
|
||||
@host = options[:host] || "sqs.#{options[:region]}.amazonaws.com"
|
||||
|
||||
@path = options[:path] || '/'
|
||||
@persistent = options[:persistent] || false
|
||||
@port = options[:port] || 443
|
||||
|
|
Loading…
Add table
Reference in a new issue