[virt-tools-list] [PATCH virt-manager] virtManager: do not fail at connection time if a volume does not exist
Giuseppe Scrivano
gscrivan at redhat.com
Wed Dec 10 10:29:13 UTC 2014
Problem introduced by commit 1662f75e07e8bfb46a552c686e2db3e4368786b6
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
virtManager/domain.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/virtManager/domain.py b/virtManager/domain.py
index 2d4afcb..ad9f8a6 100644
--- a/virtManager/domain.py
+++ b/virtManager/domain.py
@@ -496,7 +496,10 @@ class vmmDomain(vmmLibvirtObject):
for disk in self.get_disk_devices(refresh_if_nec=False):
if disk.read_only:
continue
- if not disk.path:
+ try:
+ if not disk.path:
+ continue
+ except libvirt.libvirtError:
continue
if disk.driver_type == "qcow2":
seen_qcow2 = True
--
1.9.3
More information about the virt-tools-list
mailing list