storage: fix loading default storage pool

qubes.config.defaults holds ['pool_drivers'] strings, not classes.
This commit is contained in:
Marek Marczykowski-Górecki 2016-02-08 20:22:51 +01:00 committed by Wojtek Porczyk
parent c47e29ed50
commit d3f9c0b169

View File

@ -470,7 +470,7 @@ def _get_pool_klass(name, config=None):
klass = load(config.get(name, 'class'))
elif config.has_option(name, 'driver'):
pool_driver = config.get(name, 'driver')
klass = qubes.config.defaults['pool_drivers'][pool_driver]
klass = load(qubes.config.defaults['pool_drivers'][pool_driver])
else:
raise StoragePoolException('Uknown storage pool driver ' + name)
return klass