duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.9k stars 797 forks source link

Fixes exception when parameter file missing #925

Closed andreyzhelnin-st closed 1 month ago

andreyzhelnin-st commented 2 years ago

I'm getting following exception when run report.

root@91107bedf108:/opt/cloudmapper# python cloudmapper.py report --account st
* Getting resource counts
Traceback (most recent call last):
  File "cloudmapper.py", line 72, in <module>
    main()
  File "cloudmapper.py", line 66, in main
    commands[command].run(arguments)
  File "/opt/cloudmapper/commands/report.py", line 476, in run
    report(accounts, config, args)
  File "/opt/cloudmapper/commands/report.py", line 102, in report
    account, args.stats_all_resources
  File "/opt/cloudmapper/shared/common.py", line 306, in get_account_stats
    )["LocationConstraint"]
TypeError: 'NoneType' object is not subscriptable
CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.