qvm-prefs: fix display format of 'label' property
Fixes QubesOS/qubes-issues#1274
This commit is contained in:
parent
9ea81c50ae
commit
16b8fa011b
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user