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

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

 



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


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux