core: fix is_paused method

This commit is contained in:
Marek Marczykowski-Górecki 2014-11-29 02:58:47 +01:00
parent 6da608783f
commit 7a3bce6c61

View File

@ -810,7 +810,8 @@ class QubesVm(object):
return False
def is_paused(self):
if self.libvirt_domain and self.libvirt_domain.state() == libvirt.VIR_DOMAIN_PAUSED:
if self.libvirt_domain and self.libvirt_domain.state()[0] == \
libvirt.VIR_DOMAIN_PAUSED:
return True
else:
return False