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

Error listing reserved instances when the purchase is in payment-pending status #2

Open
frommelmak opened this issue Jan 23, 2019 · 0 comments

Comments

@frommelmak
Copy link
Owner

The reserver-instances.py script fails like this:

Reserved Id                          Instances  Type         Product Description      Scope              Zone           Duration   Time Left End                        Offering
Traceback (most recent call last):
  File "/usr/local/bin/ec2-reserved.py", line 244, in <module>
    sys.exit(main())
  File "/usr/local/bin/ec2-reserved.py", line 150, in main
    events, event_ids, instances = list_reserved_instances(filters)
  File "/usr/local/bin/ec2-reserved.py", line 32, in list_reserved_instances
    end_dt = datetime.strptime(str(end), "%Y-%m-%d %H:%M:%S+00:00")
  File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_strptime.py", line 332, in _strptime
    (data_string, format))
ValueError: time data '2020-01-23 11:17:15.537000+00:00' does not match format '%Y-%m-%d %H:%M:%S+00:00'```
@frommelmak frommelmak changed the title Error listing reserved instances when the purchasing is in payment-pengind status Error listing reserved instances when the purchase is in payment-pending status Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant