Fix error on containerless networks
This commit is contained in:
parent
4390b6da78
commit
ba2ca68284
1 changed files with 8 additions and 7 deletions
|
@ -93,6 +93,7 @@ def generate_graph(verbose: bool, file: str):
|
|||
style='filled'
|
||||
)
|
||||
|
||||
if net['Containers']:
|
||||
for container_id, container in sorted(net['Containers'].items()):
|
||||
if verbose:
|
||||
dump_json(container)
|
||||
|
|
Loading…
Reference in a new issue