storage: set only 'default' pool when creating VM on custom one
Do not replace 'linux-kernel' pool for example.
This commit is contained in:
parent
e1d9de1cc2
commit
9395e8fc33
@ -1559,7 +1559,7 @@ def _patch_pool_config(config, pool=None, pools=None):
|
|||||||
|
|
||||||
name = config['name']
|
name = config['name']
|
||||||
|
|
||||||
if pool and is_exportable:
|
if pool and is_exportable and config['pool'] == 'default':
|
||||||
config['pool'] = str(pool)
|
config['pool'] = str(pool)
|
||||||
elif pool and not is_exportable:
|
elif pool and not is_exportable:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user