Implemented planner config module

Implemented planner config module

Partially Implements: blueprint centralise-config-opts

Change-Id: I4d710c8552ef211c6a9c38dd8f5515f68a6d36c4
This commit is contained in:
Prudhvi Rao Shedimbi
2016-11-29 21:21:16 +00:00
committed by David TARDIVEL
parent 74112dd7cf
commit 80e77a5b81
4 changed files with 47 additions and 18 deletions

View File

@@ -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):