Config options: centralize section "scheduler"

This change moves all of the configuration options previously defined in
nova/scheduler to the new centralized nova/conf/scheduler directory.

A subsequent patch will then improve the help texts.

Blueprint centralize-config-options
Change-Id: I08d50e873f71601a26ce768feac635243d0570f4
This commit is contained in:
EdLeafe 2015-11-16 11:08:22 -06:00
parent 64af291fc8
commit b9ac4fec23
2 changed files with 4 additions and 11 deletions

View File

@ -19,8 +19,10 @@
from oslo_config import cfg
from nova.conf import scheduler
from nova.conf import serial_console
CONF = cfg.CONF
scheduler.register_opts(CONF)
serial_console.register_opts(CONF)

View File

@ -13,23 +13,14 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
import six
import nova.conf
from nova.scheduler import filters
from nova.scheduler.filters import utils
opts = [
cfg.StrOpt('aggregate_image_properties_isolation_namespace',
help='Force the filter to consider only keys matching '
'the given namespace.'),
cfg.StrOpt('aggregate_image_properties_isolation_separator',
default=".",
help='The separator used between the namespace and keys'),
]
CONF = cfg.CONF
CONF.register_opts(opts)
CONF = nova.conf.CONF
LOG = logging.getLogger(__name__)