Merge "Remove [watcher_goals] config section"
This commit is contained in:
@@ -25,22 +25,6 @@ from watcher.decision_engine.strategy.selection import base
|
||||
LOG = log.getLogger(__name__)
|
||||
CONF = cfg.CONF
|
||||
|
||||
default_goals = {'DUMMY': 'dummy'}
|
||||
|
||||
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)'),
|
||||
]
|
||||
goals_opt_group = cfg.OptGroup(name='watcher_goals',
|
||||
title='Goals available for the optimization')
|
||||
CONF.register_group(goals_opt_group)
|
||||
CONF.register_opts(WATCHER_GOALS_OPTS, goals_opt_group)
|
||||
|
||||
|
||||
class DefaultStrategySelector(base.BaseSelector):
|
||||
|
||||
|
||||
@@ -22,14 +22,11 @@ from watcher.applier import manager as applier_manager
|
||||
from watcher.common import clients
|
||||
from watcher.decision_engine import manager as decision_engine_manger
|
||||
from watcher.decision_engine.planner import manager as planner_manager
|
||||
from watcher.decision_engine.strategy.selection import default \
|
||||
as strategy_selector
|
||||
|
||||
|
||||
def list_opts():
|
||||
return [
|
||||
('api', watcher.api.app.API_SERVICE_OPTS),
|
||||
('watcher_goals', strategy_selector.WATCHER_GOALS_OPTS),
|
||||
('watcher_decision_engine',
|
||||
decision_engine_manger.WATCHER_DECISION_ENGINE_OPTS),
|
||||
('watcher_applier', applier_manager.APPLIER_MANAGER_OPTS),
|
||||
|
||||
Reference in New Issue
Block a user