Skip to content

Commit

Permalink
PYTHON-3942 Follow up - fix for unbound variable (#358)
Browse files Browse the repository at this point in the history
Fix for unbound session
  • Loading branch information
blink1073 authored Oct 2, 2023
1 parent e31f785 commit 7cb3104
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .evergreen/auth_aws/setup_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def get_secrets(vaults, region, profile):
kwargs.update(aws_access_key_id=creds['AccessKeyId'],
aws_secret_access_key=creds['SecretAccessKey'],
aws_session_token=creds['SessionToken'])

else:
session = boto3.Session(profile_name=profile)
client = session.client(service_name='secretsmanager', **kwargs)

secrets = []
Expand Down

0 comments on commit 7cb3104

Please sign in to comment.