1
0
Fork 0
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:
Andrew Kane 2017-05-22 16:51:20 -07:00
parent 196f9d9fa2
commit d2eb7d396c

View file

@ -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