only override strategy if other than DEFAULT

This commit is contained in:
gcarq 2018-03-27 18:15:49 +02:00
parent f78044da6d
commit df57c32076

View File

@ -33,7 +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)
# Add the strategy file to use # Override strategy if specified
if self.args.strategy != Constants.DEFAULT_STRATEGY:
config.update({'strategy': self.args.strategy}) config.update({'strategy': self.args.strategy})
if self.args.strategy_path: if self.args.strategy_path: