2012-07-13 22:11:20 +02:00
|
|
|
Index: virt-manager-0.9.3/src/virtManager/domain.py
|
2011-11-08 14:40:25 +01:00
|
|
|
===================================================================
|
2012-07-13 22:11:20 +02:00
|
|
|
--- virt-manager-0.9.3.orig/src/virtManager/domain.py
|
|
|
|
+++ virt-manager-0.9.3/src/virtManager/domain.py
|
|
|
|
@@ -1584,7 +1584,14 @@ class vmmDomain(vmmLibvirtObject):
|
2011-11-28 20:35:50 +01:00
|
|
|
# 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:
|