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

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



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 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


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