Open yasinzaehringer-paradime opened 1 month ago
I fixed this by changing this to something like:
def iso_date(d):
"""Convert ISO format date string such as 2018-04-08T23:33:20+00:00"""
time_format = "%Y-%m-%dT%H:%M:%S"
- return datetime.datetime.strptime(d.split("+")[0], time_format)
+ return datetime.datetime.strptime(d.replace('Z', '').split("+")[0], time_format)
Probably a better fix would be to just consider dates won't have the +00:00
now, but didn't know if this was used somewhere else.
This change also worked for me!
Note the Network Visualization functionality (command
prepare
) is no longer maintained.Please mention the following:
What command was run? ->
python cloudmapper.py audit
Are you working out of a virtualenv environment, Docker, or something else? ->
virtualenv
Which branch? ->
main
Exception was:
The reason seems to be that these commands
return data which have timestamps which end with
Z
instead of+00:00
- which are both valid values. And https://github.com/duo-labs/cloudmapper/blob/main/shared/common.py#L342 assumes that it ends with+00:00
.