Don't strip single-element lists
This was a dumb decision that complicated handling of single-item entries.
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user