From 16b8fa011b610cf53225431c1dd48ec633b66cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 5 Oct 2015 05:52:35 +0200 Subject: [PATCH] qvm-prefs: fix display format of 'label' property Fixes QubesOS/qubes-issues#1274 --- qvm-tools/qvm-prefs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qvm-tools/qvm-prefs b/qvm-tools/qvm-prefs index 78d09b87..3ef77c6d 100755 --- a/qvm-tools/qvm-prefs +++ b/qvm-tools/qvm-prefs @@ -128,7 +128,7 @@ def do_get(vms, vm, prop): if getattr(vm, prop, None) is None: # not set or set to None return - if prop in ['template', 'netvm', 'dispvm_netvm']: + if prop in ['template', 'netvm', 'dispvm_netvm', 'label']: print getattr(vm, prop).name else: print str(getattr(vm, prop))