Always handle single-instance results

This commit is contained in:
2020-01-05 02:55:28 -05:00
parent 065ba29c84
commit 44753c0609
4 changed files with 16 additions and 4 deletions

View File

@ -538,6 +538,10 @@ def format_list(config, network_list):
click.echo("No network found")
return
# Handle single-element lists
if not isinstance(network_list, list):
network_list = [ network_list ]
network_list_output = []
# Determine optimal column widths