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

Commit eb8157a

Browse files
committed
clone: Explicitly fail cloning to an existing vol
We don't support it yet
1 parent 18dd534 commit eb8157a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

virtinst/CloneManager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,12 @@ def setup_clone(self):
469469
if disk.target == orig_disk.target:
470470
xmldisk = disk
471471

472+
if clone_disk.vol_object:
473+
# XXX We could do this with vol upload I think
474+
raise RuntimeError(
475+
_("Clone onto existing storage volume is not "
476+
"supported: '%s'") % clone_disk.path)
477+
472478
# Change the XML
473479
xmldisk.path = None
474480
xmldisk.type = clone_disk.type

0 commit comments

Comments
 (0)