You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I just tried to run this tool today with -env aws.
I kept getting this exception in a few different spots:
File "cs.py", line 89, in <module>
main()
File "cs.py", line 53, in main
from modules import awsaudit
File "/Users/coltonleese/cs-suite/modules/awsaudit.py", line 30, in <module>
account_name = get_account_alias() or get_account_id()
File "/Users/coltonleese/cs-suite/modules/awsaudit.py", line 15, in get_account_alias
account_details = json.loads(str(account_details))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
This is an issue but the simple way to fix this i found was to update aws configuration to be json output but this should be in code as for ease of reading my normal CLI output is text
Hi there, I just tried to run this tool today with -env aws.
I kept getting this exception in a few different spots:
I fixed it by changing the command
to
I can submit a PR if you want but don't know if this is widely applicable.
thanks.
The text was updated successfully, but these errors were encountered: