qubes/storage: minor error message fix

This commit is contained in:
Marek Marczykowski-Górecki 2016-05-20 03:00:00 +02:00 committed by Wojtek Porczyk
parent d80f34888d
commit 48176d51f1

View File

@ -240,7 +240,7 @@ class FilePool(Pool):
origin_pool = vm.app.get_pool( origin_pool = vm.app.get_pool(
vm.template.volume_config[name]['pool']) vm.template.volume_config[name]['pool'])
assert isinstance(origin_pool, assert isinstance(origin_pool,
FilePool), 'Origin volume not a xen volume' FilePool), 'Origin volume not a file volume'
volume_config['target_dir'] = origin_pool.target_dir(vm.template) volume_config['target_dir'] = origin_pool.target_dir(vm.template)
name = volume_config['name'] name = volume_config['name']
volume_config['size'] = vm.template.volume_config[name]['size'] volume_config['size'] = vm.template.volume_config[name]['size']