mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-15 01:43:35 -06:00
qemu://session can't write to the pool so use current directory
This commit is contained in:
parent
135610b098
commit
8970eba45d
@ -380,10 +380,9 @@ class vmmConfig:
|
||||
def get_default_image_dir(self, connection):
|
||||
if connection.get_type() == "Xen":
|
||||
return DEFAULT_XEN_IMAGE_DIR
|
||||
#elif os.access(DEFAULT_VIRT_IMAGE_DIR, os.W_OK):
|
||||
# return DEFAULT_VIRT_IMAGE_DIR
|
||||
#else:
|
||||
# return os.getcwd()
|
||||
|
||||
if connection.is_qemu_session():
|
||||
return os.getcwd()
|
||||
|
||||
# Just return the default dir since the intention is that it
|
||||
# is a managed pool and the user will be able to install to it.
|
||||
|
Loading…
Reference in New Issue
Block a user