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,8 +33,9 @@ class Configuration(object):
logger.info('Using config: %s ...', self.args.config)
config = self._load_config_file(self.args.config)
# Add the strategy file to use
config.update({'strategy': self.args.strategy})
# Override strategy if specified
if self.args.strategy != Constants.DEFAULT_STRATEGY:
config.update({'strategy': self.args.strategy})
if self.args.strategy_path:
config.update({'strategy_path': self.args.strategy_path})