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

@ -186,10 +186,6 @@ def format_info(node_information, long_output):
def format_list(node_list, raw):
# Handle single-element lists
if not isinstance(node_list, list):
node_list = [node_list]
if raw:
ainformation = list()
for node in sorted(item['name'] for item in node_list):