Don't create a qemu disk image when creating containers

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
This commit is contained in:
Cédric Bosdonnat
2014-05-27 10:56:34 +02:00
committed by Cole Robinson
parent 768ff1ff84
commit 2e7ebd4b76

View File

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