[virt-tools-list] [PATCH] CloneManager:use VirtualDisk.setup_dev instead of deprecated setup

Wanlong Gao gaowanlong at cn.fujitsu.com
Fri Mar 23 07:09:40 UTC 2012


Use VirtualDisk.setup_dev instead of the deprecated VirtualDisk.setup.

Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
 virtinst/CloneManager.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virtinst/CloneManager.py b/virtinst/CloneManager.py
index aa5e3f5..ff3c074 100644
--- a/virtinst/CloneManager.py
+++ b/virtinst/CloneManager.py
@@ -645,5 +645,5 @@ def _do_duplicate(design, meter):
             logging.debug("Source and destination are the same. Skipping.")
             continue
 
-        # VirtualDisk.setup handles everything
-        dst_dev.setup(meter)
+        # VirtualDisk.setup_dev handles everything
+        dst_dev.setup_dev(meter=meter)
-- 
1.7.10.rc1




More information about the virt-tools-list mailing list