Merge remote-tracking branch 'qubesos/pr/195'

* qubesos/pr/195:
  Fix is_running non-boolean
This commit is contained in:
Marek Marczykowski-Górecki 2018-02-22 17:52:09 +01:00
commit b283ab2b52
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1624,7 +1624,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
else:
raise
return self.libvirt_domain.isActive()
return bool(self.libvirt_domain.isActive())
def is_paused(self):
'''Check whether this domain is paused.