1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

set region before fetching credentials

This commit is contained in:
Frederick Cheung 2015-09-29 10:58:17 +01:00
parent 440f62a499
commit 88d00aa41d

View file

@ -74,12 +74,12 @@ module Fog
def initialize(options={})
@use_iam_profile = options[:use_iam_profile]
@region = options[:region] || 'us-east-1'
setup_credentials(options)
@instrumentor = options[:instrumentor]
@instrumentor_name = options[:instrumentor_name] || 'fog.aws.sts'
@connection_options = options[:connection_options] || {}
@region = options[:region] || 'us-east-1'
@host = options[:host] || "sts.#{@region}.amazonaws.com"
@path = options[:path] || '/'
@persistent = options[:persistent] || false