change strategy override condition

This commit is contained in:
gcarq 2018-03-27 18:20:15 +02:00
parent e7399b5046
commit 6a12591248

View File

@ -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: