Sort the names properly

This commit is contained in:
Joshua Boniface 2019-03-12 21:46:09 -04:00
parent d6b554e88e
commit abbc361520
1 changed files with 3 additions and 2 deletions

View File

@ -578,8 +578,9 @@ def get_list(zk_conn, node, limit, raw):
click.echo('Error: Domain {} does not exist.'.format(domain)) click.echo('Error: Domain {} does not exist.'.format(domain))
if raw: if raw:
for vm in vm_list: print(vm_name)
click.echo(vm_name[vm]) for vm in sorted(vm_name.values()):
click.echo(vm)
return True, '' return True, ''
# Determine optimal column widths # Determine optimal column widths