Skip to content

Commit

Permalink
Resolve #163 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
okigan authored May 5, 2023
1 parent 013466c commit f641e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awscurl/awscurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ def load_aws_config(access_key, secret_key, security_token, credentials_path, pr
botocore = None

if botocore:
from botocore.session import Session
session = Session(profile=profile)
import botocore.session
session = botocore.session.get_session()
cred = session.get_credentials()
access_key, secret_key, security_token = cred.access_key, cred.secret_key, cred.token

Expand Down

0 comments on commit f641e98

Please sign in to comment.