Don't strip single-element lists

This was a dumb decision that complicated handling of single-item
entries.
This commit is contained in:
2020-12-01 03:20:00 -05:00
parent 3a5955b41c
commit 185615e6e8
5 changed files with 0 additions and 71 deletions

View File

@ -440,10 +440,6 @@ def format_list(config, network_list):
if not network_list:
return "No network found"
# Handle single-element lists
if not isinstance(network_list, list):
network_list = [network_list]
network_list_output = []
# Determine optimal column widths
@ -617,9 +613,6 @@ def format_list_acl(acl_list):
# Handle when we get an empty entry
if not acl_list:
acl_list = list()
# Handle when we get a single entry
if isinstance(acl_list, dict):
acl_list = [acl_list]
acl_list_output = []