Handle raw sorting properly with new list format

This commit is contained in:
Joshua Boniface 2019-05-21 14:44:45 -04:00
parent 595cf1782c
commit 79d0a2eafc
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ def format_info(zk_conn, domain_information, long_output):
def format_list(zk_conn, vm_list, raw):
# Handle raw mode since it just lists the names
if raw:
for vm in sorted(vm_name.values()):
for vm in sorted(item['name'] for item in vm_list):
click.echo(vm)
return True, ''