33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
|
Subject: Handle libvirt generating invalid volume XML (bz 1072770)
|
||
|
From: Cole Robinson crobinso@redhat.com Thu Mar 6 12:04:08 2014 -0500
|
||
|
Date: Thu Mar 6 12:04:08 2014 -0500:
|
||
|
Git: df7012a68b6a13a676e2019523f6863617a110d8
|
||
|
|
||
|
|
||
|
diff --git a/virtManager/connection.py b/virtManager/connection.py
|
||
|
index 96dfa1c..57e143d 100644
|
||
|
--- a/virtManager/connection.py
|
||
|
+++ b/virtManager/connection.py
|
||
|
@@ -179,7 +179,7 @@ class vmmConnection(vmmGObject):
|
||
|
for vol in pool.get_volumes(refresh=False).values():
|
||
|
try:
|
||
|
ret.append(vol.get_xmlobj(refresh_if_nec=False))
|
||
|
- except libvirt.libvirtError, e:
|
||
|
+ except Exception, e:
|
||
|
logging.debug("Fetching volume XML failed: %s", e)
|
||
|
return ret
|
||
|
self._backend.cb_fetch_all_vols = fetch_all_vols
|
||
|
diff --git a/virtinst/connection.py b/virtinst/connection.py
|
||
|
index a915f25..3cc5b79 100644
|
||
|
--- a/virtinst/connection.py
|
||
|
+++ b/virtinst/connection.py
|
||
|
@@ -222,7 +222,7 @@ class VirtualConnection(object):
|
||
|
try:
|
||
|
xml = vol.XMLDesc(0)
|
||
|
ret.append(StorageVolume(weakref.ref(self), parsexml=xml))
|
||
|
- except libvirt.libvirtError, e:
|
||
|
+ except Exception, e:
|
||
|
logging.debug("Fetching volume XML failed: %s", e)
|
||
|
|
||
|
if self.cache_object_fetch:
|