From 34ab93a5f20cc64bdaaca676545d536aeaa8d58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Antal?= Date: Tue, 5 Jan 2016 14:12:06 +0100 Subject: [PATCH] Strategy goals should be required in conf In the section "WATCHER_GOALS_OPTS" the dict option "goals" is not mandatory. However it should be. Change-Id: I2e0770cf7787fed449c012bc45462e3138992ebf Closes-Bug: #1531116 --- watcher/decision_engine/strategy/selection/default.py | 1 + 1 file changed, 1 insertion(+) diff --git a/watcher/decision_engine/strategy/selection/default.py b/watcher/decision_engine/strategy/selection/default.py index 7462288c5..28e6984f8 100644 --- a/watcher/decision_engine/strategy/selection/default.py +++ b/watcher/decision_engine/strategy/selection/default.py @@ -31,6 +31,7 @@ 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)'),