Skip to content

Commit

Permalink
Merge pull request #366 from instacart/skip_region_fetch
Browse files Browse the repository at this point in the history
Fixed credential refresh when instance metadata host is inaccessible
  • Loading branch information
geemus authored May 24, 2017
2 parents bcc45cf + d2eb7d3 commit d3c1fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/aws/credential_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def credentials_expired?

def refresh_credentials
if @use_iam_profile
new_credentials = service.fetch_credentials :use_iam_profile => @use_iam_profile
new_credentials = service.fetch_credentials :use_iam_profile => @use_iam_profile, :region => @region
if new_credentials.any?
setup_credentials new_credentials
return true
Expand Down

0 comments on commit d3c1fca

Please sign in to comment.