Fixes strategy config from file logic
This commit is contained in:
parent
3f65c31883
commit
7e45a4367b
@ -152,9 +152,9 @@ class Configuration:
|
||||
|
||||
self._process_logging_options(config)
|
||||
|
||||
# Set strategy if not specified in config and or if it's non default
|
||||
if self.args.get("strategy") != constants.DEFAULT_STRATEGY or not config.get('strategy'):
|
||||
config.update({'strategy': self.args.get("strategy")})
|
||||
if ("strategy" in self.args and self.args["strategy"] and
|
||||
self.args['strategy'] != constants.DEFAULT_STRATEGY):
|
||||
config.update({'strategy': self.args['strategy']})
|
||||
|
||||
self._args_to_config(config, argname='strategy_path',
|
||||
logstring='Using additional Strategy lookup path: {}')
|
||||
|
Loading…
Reference in New Issue
Block a user