[virt-tools-list] [virt-manager PATCH] cloner: preserve the disk type in the cloned domain

Pavel Hrdina phrdina at redhat.com
Fri Mar 3 07:19:33 UTC 2017


Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1420187

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 virtinst/cloner.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/cloner.py b/virtinst/cloner.py
index 5255acfe..ab1f036e 100644
--- a/virtinst/cloner.py
+++ b/virtinst/cloner.py
@@ -409,7 +409,7 @@ class Cloner(object):
 
             # Change the XML
             xmldisk.path = None
-            xmldisk.type = clone_disk.type
+            xmldisk.type = orig_disk.type
             xmldisk.driver_name = orig_disk.driver_name
             xmldisk.driver_type = orig_disk.driver_type
             xmldisk.path = clone_disk.path
-- 
2.11.1




More information about the virt-tools-list mailing list