[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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

Signed-off-by: Wanlong Gao <gaowanlong 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]