qvm-prefs: fix display format of 'label' property

Fixes QubesOS/qubes-issues#1274
This commit is contained in:
Marek Marczykowski-Górecki 2015-10-05 05:52:35 +02:00
parent 9ea81c50ae
commit 16b8fa011b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -128,7 +128,7 @@ def do_get(vms, vm, prop):
if getattr(vm, prop, None) is None: if getattr(vm, prop, None) is None:
# not set or set to None # not set or set to None
return return
if prop in ['template', 'netvm', 'dispvm_netvm']: if prop in ['template', 'netvm', 'dispvm_netvm', 'label']:
print getattr(vm, prop).name print getattr(vm, prop).name
else: else:
print str(getattr(vm, prop)) print str(getattr(vm, prop))