2016-01-05 10:14:29 |
Jean-Emile DARTOIS |
description |
In the WATCHER_GOALS_OPTS the option is not mandatory but we always need a goal.
So we need to add required=True
https://github.com/openstack/watcher/blob/master/watcher/decision_engine/strategy/selection/default.py#L33
WATCHER_GOALS_OPTS = [
cfg.DictOpt(
'goals',
default=default_goals,
required=True,
help='Goals used for the optimization. '
'Maps each goal to an associated strategy (for example: '
'BASIC_CONSOLIDATION:basic, MY_GOAL:my_strategy_1)'),
] |
In the section "WATCHER_GOALS_OPTS" the dict option "goals" is not mandatory. However it should be.
So we need to add "required=True"
The code is available here :
https://github.com/openstack/watcher/blob/master/watcher/decision_engine/strategy/selection/default.py#L33
WATCHER_GOALS_OPTS = [
cfg.DictOpt(
'goals',
default=default_goals,
required=True,
help='Goals used for the optimization. '
'Maps each goal to an associated strategy (for example: '
'BASIC_CONSOLIDATION:basic, MY_GOAL:my_strategy_1)'),
] |
|