From d2eb7d396c36a253c67afc7b32c076a9a2df2def Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 22 May 2017 16:51:20 -0700 Subject: [PATCH] Fixed credential refresh --- lib/fog/aws/credential_fetcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/credential_fetcher.rb b/lib/fog/aws/credential_fetcher.rb index e13d3346b..6bf467bc6 100644 --- a/lib/fog/aws/credential_fetcher.rb +++ b/lib/fog/aws/credential_fetcher.rb @@ -68,7 +68,7 @@ module Fog 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