qubes/mgmt: encode VM name without quotes

That's how it is in the specification.

QubesOS/qubes-issues#853
This commit is contained in:
Marek Marczykowski-Górecki 2017-02-27 21:42:30 +01:00
parent f4616fc366
commit 6ab7032b11
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -137,7 +137,7 @@ class QubesMgmt(object):
domains = self.fire_event_for_filter(self.app.domains)
return ''.join('{} class={} state={}\n'.format(
self.repr(vm),
vm.name,
vm.__class__.__name__,
vm.get_power_state())
for vm in sorted(domains))