From 79d0a2eafc4d8d3465e60fa1d4edb59636fa465a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 21 May 2019 14:44:45 -0400 Subject: [PATCH] Handle raw sorting properly with new list format --- client-common/vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-common/vm.py b/client-common/vm.py index 0a1b6c0a..25cfc0c8 100644 --- a/client-common/vm.py +++ b/client-common/vm.py @@ -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, ''