Sync from SUSE:ALP:Source:Standard:1.0 virt-manager revision 1e077814a00fc7df88daa558ef5682bd
This commit is contained in:
19
virtman-fix-restore-vm-menu-selection.patch
Normal file
19
virtman-fix-restore-vm-menu-selection.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
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):
|
Reference in New Issue
Block a user