Implemented planner config module
Implemented planner config module Partially Implements: blueprint centralise-config-opts Change-Id: I4d710c8552ef211c6a9c38dd8f5515f68a6d36c4
This commit is contained in:
committed by
David TARDIVEL
parent
74112dd7cf
commit
80e77a5b81
@@ -15,28 +15,14 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from watcher.decision_engine.loading import default as loader
|
||||
|
||||
from watcher import conf
|
||||
|
||||
LOG = log.getLogger(__name__)
|
||||
CONF = cfg.CONF
|
||||
|
||||
default_planner = 'default'
|
||||
|
||||
WATCHER_PLANNER_OPTS = {
|
||||
cfg.StrOpt('planner',
|
||||
default=default_planner,
|
||||
required=True,
|
||||
help='The selected planner used to schedule the actions')
|
||||
}
|
||||
planner_opt_group = cfg.OptGroup(name='watcher_planner',
|
||||
title='Defines the parameters of '
|
||||
'the planner')
|
||||
CONF.register_group(planner_opt_group)
|
||||
CONF.register_opts(WATCHER_PLANNER_OPTS, planner_opt_group)
|
||||
CONF = conf.CONF
|
||||
|
||||
|
||||
class PlannerManager(object):
|
||||
|
||||
Reference in New Issue
Block a user