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

Fixes exception when parameter file missing #925

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andreyzhelnin-st
Copy link

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

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
Copy link

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.

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

Successfully merging this pull request may close these issues.

None yet

2 participants