Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit a298b00

Browse files
committed
Storage: Report nicer error if createVolFrom not supported.
1 parent d789bc6 commit a298b00

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

virtinst/Storage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,10 @@ def install(self, meter=None):
11521152
logging.debug("Storage volume '%s' install complete." %
11531153
self.name)
11541154
return vol
1155+
except libvirt.libvirtError, e:
1156+
if support.is_error_nosupport(e):
1157+
raise RuntimeError("Libvirt version does not support "
1158+
"storage cloning.")
11551159
except Exception, e:
11561160
raise RuntimeError("Couldn't create storage volume "
11571161
"'%s': '%s'" % (self.name, str(e)))

0 commit comments

Comments
 (0)