diff --git a/S3/Config.py b/S3/Config.py index 38532467..03b6750a 100644 --- a/S3/Config.py +++ b/S3/Config.py @@ -323,7 +323,7 @@ def role_config(self): web_identity_token_file = os.environ.get('AWS_WEB_IDENTITY_TOKEN_FILE') if web_identity_token_file: with open(web_identity_token_file) as f: - web_identity_token = f.read() + web_identity_token = f.read().rstrip() params['Action'] = 'AssumeRoleWithWebIdentity' params['WebIdentityToken'] = web_identity_token encoded_params = '&'.join([