duo-labs / duo-labs/cloudmapper
Error during prepare due to missing ? in shared/node.py
- Dominant language
- JavaScript
- Stars
- 6.3k
- Forks
- 836
- PR merge metrics
- No merged PRs in 30d
Description
Getting error during prepare
`Traceback (most recent call last):
File "cloudmapper.py", line 72, in
main()
File "cloudmapper.py", line 66, in main
commands[command].run(arguments)
File "/home/ubuntu/Documents/cloudmapper/commands/prepare.py", line 819, in run
prepare(account, config, outputfilter)
File "/home/ubuntu/Documents/cloudmapper/commands/prepare.py", line 660, in prepare
cytoscape_json = build_data_structure(account, config, outputfilter)
File "/home/ubuntu/Documents/cloudmapper/commands/prepare.py", line 477, in build_data_structure
add_node_to_subnets(region, node, nodes)
File "/home/ubuntu/Documents/cloudmapper/commands/prepare.py", line 329, in add_node_to_subnets
if len(node.subnets) == 0 and vpc.local_id == node._parent.local_id:
File "/home/ubuntu/Documents/cloudmapper/shared/nodes.py", line 499, in subnets
".DBSubnetGroup.Subnets[].SubnetIdentifier", self._json_blob
File "/home/ubuntu/.local/share/virtualenvs/cloudmapper-BV2qN1UK/lib/python3.7/site-packages/pyjq.py", line 49, in all
return compile(script, vars, library_paths).all(_get_value(value, url, opener))
File "_pyjq.pyx", line 209, in _pyjq.Script.all (_pyjq.c:2561)
_pyjq.ScriptRuntimeError: Cannot iterate over null (null)
`
Solved by adding ? to line 499 in shared/nodes.py
`
".DBSubnetGroup.Subnets[]?.SubnetIdentifier", self._json_blob
`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.