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

Commit 03804ee

Browse files
mkletzancrobinso
authored andcommitted
virt-clone: Properly propagate --replace parameter
Solves https://bugzilla.redhat.com/show_bug.cgi?id=913382 Due to the '--replace' parameter not being propagated properly, the clone of a guest with already existing name fails.
1 parent 5584b57 commit 03804ee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

virtinst/CloneManager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#
2+
# Copyright 2013 Red Hat, Inc.
23
# Copyright(c) FUJITSU Limited 2007.
34
#
45
# Cloning a virtual machine module.
@@ -404,6 +405,7 @@ def setup_original(self):
404405

405406
self._guest = Guest.Guest(conn=self._hyper_conn,
406407
parsexml=self.original_xml)
408+
self._guest.replace = self.replace
407409

408410
# Pull clonable storage info from the original xml
409411
self._original_virtual_disks = self._get_original_devices_info()

0 commit comments

Comments
 (0)