20 lines
881 B
Diff
20 lines
881 B
Diff
References: bsc#1138110
|
|
virt-manager no longer tracks the saved state but leaves it up to libvirt.
|
|
Libvirt returns libvirt.VIR_DOMAIN_PMSUSPENDED after a vm has been 'saved'.
|
|
|
|
|
|
Index: virt-manager-4.0.0/virtManager/object/domain.py
|
|
===================================================================
|
|
--- virt-manager-4.0.0.orig/virtManager/object/domain.py
|
|
+++ virt-manager-4.0.0/virtManager/object/domain.py
|
|
@@ -1620,7 +1620,8 @@ class vmmDomain(vmmLibvirtObject):
|
|
return (self.is_stoppable() or
|
|
self.status() in [libvirt.VIR_DOMAIN_CRASHED])
|
|
def is_runable(self):
|
|
- return self.is_shutoff()
|
|
+ return self.status() in [libvirt.VIR_DOMAIN_SHUTOFF,
|
|
+ libvirt.VIR_DOMAIN_PMSUSPENDED]
|
|
def is_pauseable(self):
|
|
return self.status() in [libvirt.VIR_DOMAIN_RUNNING]
|
|
def is_unpauseable(self):
|