virt-manager/virtman-update-backend.diff
Charles Arnold d9d300204b - Update to virt-manager 0.9.1
* Support for adding usb redirection devices (Marc-André Lureau)
  * Option to switch usb controller to support usb2.0 (Marc-André Lureau)
  * Option to specify machine type for non-x86 guests (Li Zhang)
  * Support for filesystem device type and write policy (Deepak C Shetty)
  * Many bug fixes!
- Update to virtinst 0.600.1
  * virt-install: --redir option for usb redirection (Marc-André Lureau)
  * virt-install: Advanced --controller support for usb2 (Marc-André Lureau)
  * Many bug fixes and minor improvments.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=86
2012-02-03 15:47:45 +00:00

21 lines
866 B
Diff

Index: virt-manager-0.9.1/src/virtManager/domain.py
===================================================================
--- virt-manager-0.9.1.orig/src/virtManager/domain.py
+++ virt-manager-0.9.1/src/virtManager/domain.py
@@ -1603,7 +1603,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: