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

Cole Robinson crobinso at redhat.com
Tue Mar 27 22:48:49 UTC 2012


On 03/23/2012 10:51 AM, Wanlong Gao wrote:
> 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)

Thanks, pushed now, and added you to AUTHORS.

- Cole




More information about the virt-tools-list mailing list