jantman / awslimitchecker

A script and python package to check your AWS service limits and usage via boto3.
http://awslimitchecker.readthedocs.org/
GNU Affero General Public License v3.0
515 stars 187 forks source link

Check LaunchSpecifications exists #526

Closed nitrocode closed 3 years ago

nitrocode commented 3 years ago

Summary

Original traceback

Traceback (most recent call last):
  File "/Users/snip/.local/share/virtualenvs/awslimitchecker-IqjcCELy/bin/awslimitchecker", line 8, in <module>
    sys.exit(console_entry_point())
  File "/Users/snip/.local/share/virtualenvs/awslimitchecker-IqjcCELy/lib/python3.9/site-packages/awslimitchecker/runner.py", line 550, in console_entry_point
    r.console_entry_point()
  File "/Users/snip/.local/share/virtualenvs/awslimitchecker-IqjcCELy/lib/python3.9/site-packages/awslimitchecker/runner.py", line 492, in console_entry_point
    self.show_usage()
  File "/Users/snip/.local/share/virtualenvs/awslimitchecker-IqjcCELy/lib/python3.9/site-packages/awslimitchecker/runner.py", line 318, in show_usage
    self.checker.find_usage(
  File "/Users/snip/.local/share/virtualenvs/awslimitchecker-IqjcCELy/lib/python3.9/site-packages/awslimitchecker/checker.py", line 433, in find_usage
    cls.find_usage()
  File "/Users/snip/.local/share/virtualenvs/awslimitchecker-IqjcCELy/lib/python3.9/site-packages/awslimitchecker/services/ec2.py", line 126, in find_usage
    self._find_usage_spot_fleets()
  File "/Users/snip/.local/share/virtualenvs/awslimitchecker-IqjcCELy/lib/python3.9/site-packages/awslimitchecker/services/ec2.py", line 252, in _find_usage_spot_fleets
    fleet['SpotFleetRequestConfig']['LaunchSpecifications'])
KeyError: 'LaunchSpecifications'

Pull Request Checklist

Contributor License Agreement

By submitting this work for inclusion in awslimitchecker, I agree to the following terms:

jantman commented 3 years ago

This has been released in 11.0.0, which is now live on PyPI. Thank you so much, and apologies for the delay.