Closed kevitan closed 5 years ago
I have successfully replicated the issue. We'll release a patch to fix this, but in the mean time I can confirm it works in later versions of Python. Thanks for the bug report!
This has been resolved in 4.0.5 If you're still having problems even after updating, feel free to reopen this issue or open a new one
Thanks!
Freshly installed awsume on MacOS Mojave.
Python version: 3.5.7 AWSume version: 4.0.4 (incidentally, I don't see this release on under the Releases)
I get an error when I try to assume a role - It seems to succeed, but in the info message that prints out the session expiration, the script errors out:
I will note that if I remove the offending call to
astimezone()
fromparse_time()
:it works as expected. But we do note that there are several places in the code that already call this, and when I try to remove those calls but leave it in
parse_time()
, the error remains.I'm not super familiar with the dateutil and datetime libraries, but it seems that because the
astimezone()
is already called in the client code, there is not a need to call it again inparse_time()
.