856ce35589
init 0 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=79
21 lines
866 B
Diff
21 lines
866 B
Diff
Index: virt-manager-0.9.0/src/virtManager/domain.py
|
|
===================================================================
|
|
--- virt-manager-0.9.0.orig/src/virtManager/domain.py
|
|
+++ virt-manager-0.9.0/src/virtManager/domain.py
|
|
@@ -1562,7 +1562,14 @@ class vmmDomain(vmmLibvirtObject):
|
|
# Invalidate cached values
|
|
self._invalidate_xml()
|
|
|
|
- info = self._backend.info()
|
|
+ try:
|
|
+ info = self._backend.info()
|
|
+ except:
|
|
+ self._backend = self.conn.vmm.lookupByName(self.get_name())
|
|
+ info = self._backend.info()
|
|
+ if info[0] == libvirt.VIR_DOMAIN_NOSTATE:
|
|
+ self._backend = self.conn.vmm.lookupByName(self.get_name())
|
|
+ info = self._backend.info()
|
|
expected = self.config.get_stats_history_length()
|
|
current = len(self.record)
|
|
if current > expected:
|