From 5b0f34834318d78f57333f55fa13216ab9bfda48 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 11 Mar 2016 15:14:03 -0500 Subject: [PATCH] register the config generator default hook with the right name No config generator hooks should ever be registered with a name that belongs to another project. In this case, using oslo.middleware.cors means that *every other project* that loads the middleware gets neutron's defaults when the generator is run on a system with everything installed (such as a dev box with devstack). Use the name neutron instead, to ensure that the defaults are only set when neutron's sample config and documentation are being generated. Change-Id: I6a8c7d44b9db9325003ff2fdb667b0ced7739e96 Signed-off-by: Doug Hellmann --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 85d80652051..4c422de7a0f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -150,7 +150,7 @@ oslo.config.opts = neutron.qos = neutron.opts:list_qos_opts nova.auth = neutron.opts:list_auth_opts oslo.config.opts.defaults = - oslo.middleware.cors = neutron.common.config:set_cors_middleware_defaults + neutron = neutron.common.config:set_cors_middleware_defaults neutron.db.alembic_migrations = neutron = neutron.db.migration:alembic_migrations neutron.interface_drivers =