Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
reweeden committed Dec 8, 2023
1 parent bbcef65 commit a291d1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rain_api_core/aws_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ def get_role_session(creds: dict = None, user_id: str = None) -> boto_Session:
if session_id not in session_cache:
now = time()
session_cache[session_id] = boto_Session(
aws_access_key_id=sts_resp['Credentials']['AccessKeyId'],
aws_secret_access_key=sts_resp['Credentials']['SecretAccessKey'],
aws_session_token=sts_resp['Credentials']['SessionToken'])
aws_access_key_id=sts_resp['Credentials']['AccessKeyId'],
aws_secret_access_key=sts_resp['Credentials']['SecretAccessKey'],
aws_session_token=sts_resp['Credentials']['SessionToken']
)
log.info(return_timing_object(service="boto3", endpoint="boto3.session()", duration=duration(now)))
else:
log.info("Reusing session {0}".format(session_id))
Expand Down

0 comments on commit a291d1b

Please sign in to comment.