Re: [PATCH] Don't create a qemu disk image when creating containers

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

 



On 05/27/2014 04:56 AM, Cédric Bosdonnat wrote:
> Make sure we don't create a default disk image if the option is checked
> but not visible as this is the case for containers
> ---
>  virtManager/addstorage.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/virtManager/addstorage.py b/virtManager/addstorage.py
> index b481fcb..654b620 100644
> --- a/virtManager/addstorage.py
> +++ b/virtManager/addstorage.py
> @@ -256,7 +256,8 @@ class vmmAddStorage(vmmGObjectUI):
>          return path
>  
>      def is_default_storage(self):
> -        return self.widget("config-storage-create").get_active()
> +        return self.widget("config-storage-create").is_visible() and \
> +               self.widget("config-storage-create").get_active()
>  
>      def _check_ideal_path(self, path, vmname, collidelist):
>          # See if the ideal disk path (/default/pool/vmname.img)
> 

ACK and pushed.

Thanks,
Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list





[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