storage: set only 'default' pool when creating VM on custom one

Do not replace 'linux-kernel' pool for example.
This commit is contained in:
Marek Marczykowski-Górecki 2016-09-26 00:46:45 +02:00
parent e1d9de1cc2
commit 9395e8fc33
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1559,7 +1559,7 @@ def _patch_pool_config(config, pool=None, pools=None):
name = config['name']
if pool and is_exportable:
if pool and is_exportable and config['pool'] == 'default':
config['pool'] = str(pool)
elif pool and not is_exportable:
pass