virt-manager/88e18c86-fix-sending-net-removed-signal.patch
Charles Arnold 8b3b1b9096 - Upstream bug fixes
848123e6-fix-memory-stats-for-shutoff-VM.patch
  ebcb7c06-fix-exception-when-the-address-is-not-an-IP.patch
  c4d26d16-fix-VM-polling-on-old-libvirt.patch
  ac2be796-do-not-throw-exception-if-volume-or-pool-dont-exist.patch
  88e18c86-fix-sending-net-removed-signal.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=231
2015-05-08 22:17:44 +00:00

31 lines
1.2 KiB
Diff

Subject: connection: Fix sending net-removed signal
From: Cole Robinson crobinso@redhat.com Thu May 7 12:30:28 2015 -0400
Date: Thu May 7 12:30:28 2015 -0400:
Git: 88e18c86d36406b3dab032b2bb21b46767871b4b
Index: virt-manager-1.2.0/virtManager/connection.py
===================================================================
--- virt-manager-1.2.0.orig/virtManager/connection.py
+++ virt-manager-1.2.0/virtManager/connection.py
@@ -961,13 +961,17 @@ class vmmConnection(vmmGObject):
for obj in gone_objects:
class_name = obj.class_name()
+ try:
+ name = obj.get_name()
+ except:
+ name = str(obj)
if not self._objects.remove(obj):
logging.debug("Requested removal of %s=%s, but it's "
- "not in our object list.", class_name, obj.get_name())
+ "not in our object list.", class_name, name)
continue
- logging.debug("%s=%s removed", class_name, obj.get_name())
+ logging.debug("%s=%s removed", class_name, name)
if class_name == "domain":
self.emit("vm-removed", obj.get_connkey())
elif class_name == "network":