Skip to content
Snippets Groups Projects
Verified Commit 08fc845f authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

indexer: Fix conditional which could not have worked

parent 1f749572
No related branches found
Tags v0.0.166
1 merge request!50revision metadata indexer: Fix multiple errors
......@@ -159,8 +159,9 @@ class BaseIndexer(SWHConfig, metaclass=abc.ABCMeta):
if not hasattr(self, 'config'):
self.config = self.parse_config_file(
additional_configs=[self.ADDITIONAL_CONFIG])
if self.config['storage']:
self.storage = get_storage(**self.config['storage'])
config_storage = self.config.get('storage')
if config_storage:
self.storage = get_storage(**config_storage)
objstorage = self.config['objstorage']
self.objstorage = get_objstorage(objstorage['cls'], objstorage['args'])
idx_storage = self.config[INDEXER_CFG_KEY]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment