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))
if raw:
for vm in vm_list:
click.echo(vm_name[vm])
print(vm_name)
for vm in sorted(vm_name.values()):
click.echo(vm)
return True, ''
# Determine optimal column widths