mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Fixed credential refresh
This commit is contained in:
parent
196f9d9fa2
commit
d2eb7d396c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue