diff --git a/S3/Config.py b/S3/Config.py index adbab442..b0707467 100644 --- a/S3/Config.py +++ b/S3/Config.py @@ -273,7 +273,8 @@ def __init__(self, configfile = None, access_key=None, secret_key=None, access_t self.secret_key = secret_key if access_token: self.access_token = access_token - # Do not refresh the IAM role when an access token is provided. + # Do not refresh the IAM role when an access token is provided. + if self.access_token: self._access_token_refresh = False if len(self.access_key)==0: