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

Re: [virt-tools-list] [PATCH virt-manager] set VM persistence and undefine source flags for migration



On 05/17/2012 06:24 PM, ryan woodsmall wrote:
>     Set VM persistence and undefine source after successful migration
> 
> diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py
> index b547f91..e348a3d 100644
> --- a/src/virtManager/domain.py
> +++ b/src/virtManager/domain.py
> @@ -1143,6 +1143,8 @@ class vmmDomain(vmmLibvirtObject):
>          newname = None
>  
>          flags = 0
> +        flags |= libvirt.VIR_MIGRATE_UNDEFINE_SOURCE
> +        flags |= libvirt.VIR_MIGRATE_PERSIST_DEST

This makes it unconditional.  I'd much rather see a checkbox for each
option, to make it user-configurable via the gui.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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