mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
committed by
Cole Robinson
parent
768ff1ff84
commit
2e7ebd4b76
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user