change strategy override condition
This commit is contained in:
parent
e7399b5046
commit
6a12591248
@ -33,8 +33,8 @@ class Configuration(object):
|
|||||||
logger.info('Using config: %s ...', self.args.config)
|
logger.info('Using config: %s ...', self.args.config)
|
||||||
config = self._load_config_file(self.args.config)
|
config = self._load_config_file(self.args.config)
|
||||||
|
|
||||||
# Override strategy if specified
|
# Set strategy if not specified in config and or if it's non default
|
||||||
if self.args.strategy != Constants.DEFAULT_STRATEGY:
|
if self.args.strategy != Constants.DEFAULT_STRATEGY or not config.get('strategy'):
|
||||||
config.update({'strategy': self.args.strategy})
|
config.update({'strategy': self.args.strategy})
|
||||||
|
|
||||||
if self.args.strategy_path:
|
if self.args.strategy_path:
|
||||||
|
Loading…
Reference in New Issue
Block a user