From 107352e11f92b231e59077b37cf68e2e5e4c3641 Mon Sep 17 00:00:00 2001 From: Sridhar S Date: Wed, 23 Oct 2013 16:03:40 +0530 Subject: [PATCH] Modified configuration group name to lowercase Most of the OpenStack project makes use of lower case for configuration group names. But, 'neutron' was having group names in either cases. Bug states it is fine to have group name in upper case for [DEFAULT] but needs to be changed for others. It was noted that [PLUMgridDirector] was having characters. Change-Id: I95f2dad6d5ae17f722202f4917b6ef460cd41e15 Closes-Bug: #1176683 --- etc/neutron/plugins/plumgrid/plumgrid.ini | 2 +- .../plumgrid/plumgrid_plugin/plumgrid_plugin.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/etc/neutron/plugins/plumgrid/plumgrid.ini b/etc/neutron/plugins/plumgrid/plumgrid.ini index 2addf617fd..e9ea3111b7 100644 --- a/etc/neutron/plugins/plumgrid/plumgrid.ini +++ b/etc/neutron/plugins/plumgrid/plumgrid.ini @@ -1,6 +1,6 @@ # Config file for Neutron PLUMgrid Plugin -[PLUMgridDirector] +[plumgriddirector] # This line should be pointing to the PLUMgrid Director, # for the PLUMgrid platform. # director_server= diff --git a/neutron/plugins/plumgrid/plumgrid_plugin/plumgrid_plugin.py b/neutron/plugins/plumgrid/plumgrid_plugin/plumgrid_plugin.py index 2c0b159bc0..2eeee40599 100644 --- a/neutron/plugins/plumgrid/plumgrid_plugin/plumgrid_plugin.py +++ b/neutron/plugins/plumgrid/plumgrid_plugin/plumgrid_plugin.py @@ -53,7 +53,7 @@ director_server_opts = [ cfg.IntOpt('servertimeout', default=5, help=_("PLUMgrid Director server timeout")), ] -cfg.CONF.register_opts(director_server_opts, "PLUMgridDirector") +cfg.CONF.register_opts(director_server_opts, "plumgriddirector") class NeutronPluginPLUMgridV2(db_base_plugin_v2.NeutronDbPluginV2, @@ -80,11 +80,11 @@ class NeutronPluginPLUMgridV2(db_base_plugin_v2.NeutronDbPluginV2, def plumgrid_init(self): """PLUMgrid initialization.""" - director_plumgrid = cfg.CONF.PLUMgridDirector.director_server - director_port = cfg.CONF.PLUMgridDirector.director_server_port - director_admin = cfg.CONF.PLUMgridDirector.username - director_password = cfg.CONF.PLUMgridDirector.password - timeout = cfg.CONF.PLUMgridDirector.servertimeout + director_plumgrid = cfg.CONF.plumgriddirector.director_server + director_port = cfg.CONF.plumgriddirector.director_server_port + director_admin = cfg.CONF.plumgriddirector.username + director_password = cfg.CONF.plumgriddirector.password + timeout = cfg.CONF.plumgriddirector.servertimeout # PLUMgrid Director info validation LOG.info(_('Neutron PLUMgrid Director: %s'), director_plumgrid)