storage: fix loading default storage pool
qubes.config.defaults holds ['pool_drivers'] strings, not classes.
This commit is contained in:
parent
c47e29ed50
commit
d3f9c0b169
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user