Skip to content

Commit

Permalink
token file stripping from newline
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadalkhansa committed Oct 30, 2024
1 parent 6198e5a commit f57e43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S3/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit f57e43a

Please sign in to comment.