From 2803fd8d400b7d76138b2e2c152017a3d5e49685 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 8 Jan 2013 07:50:47 +0000 Subject: Move osapi_compute_unique_server_name_scope to db This strange little option is only used within the DB layer. blueprint: scope-config-opts Change-Id: I10b0fef02a5fffd44094fe351cde683fc5c31442 --- nova/db/sqlalchemy/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nova/db') diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index e7b9bfc75..66ecc8bf6 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -47,8 +47,16 @@ from nova.openstack.common import log as logging from nova.openstack.common import timeutils from nova.openstack.common import uuidutils +db_opts = [ + cfg.StrOpt('osapi_compute_unique_server_name_scope', + default='', + help='When set, compute API will consider duplicate hostnames ' + 'invalid within the specified scope, regardless of case. ' + 'Should be empty, "project" or "global".'), +] CONF = cfg.CONF +CONF.register_opts(db_opts) CONF.import_opt('compute_topic', 'nova.compute.rpcapi') CONF.import_opt('sql_connection', 'nova.db.sqlalchemy.session') -- cgit