Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'expiration' when passing --auto-refresh with profile #275

Open
JoshC-Innovative opened this issue Sep 11, 2024 · 1 comment
Open
Labels

Comments

@JoshC-Innovative
Copy link

when passing the -a or --auto-refresh after a . assume my-profile I receive the following Error key...

I'm using the latest version from a pipx install

awsume is already at latest version 4.5.4 (location: /Users/jcrosby/.local/pipx/venvs/awsume)

11:27 $
. awsume my-profile -a
[my-profile] Role credentials will expire 2024-09-11 12:27:42
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/bin/autoawsume", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/awsume/autoawsume/main.py", line 38, in main
    expiration = datetime.strptime(auto_profile['expiration'], '%Y-%m-%d %H:%M:%S')
                                   ~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'expiration'
@mtskillman mtskillman added the bug label Sep 12, 2024
@alexma01
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants