Skip to content
Snippets Groups Projects
Unverified Commit 8e346347 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.deposit.config: Actually permit to use additional configs

This permits to use default configuration when not provided in
configuration file.
parent f8b24d5c
No related branches found
No related tags found
Loading
......@@ -71,9 +71,12 @@ class SWHDefaultConfig(SWHConfig):
'checks': ('bool', True),
}
ADDITIONAL_CONFIG = {}
def __init__(self, **config):
super().__init__()
self.config = self.parse_config_file()
self.config = self.parse_config_file(
additional_configs=[self.ADDITIONAL_CONFIG])
self.config.update(config)
self.log = logging.getLogger('swh.deposit')
if self.config['checks']:
......
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