neutron/neutron/cmd/eventlet
Jakub Libosvar 4d3a274765 Don't register config options on imports
Importing some modules lead to registering config options that may
collide with config options from a project that calls the import. This
patch wraps the side effect that registers config options into a
function that needs to be called in case the caller wants to register
the options.

This solution is also not perfect as it guards the common options to be
registered only once even if the function is called multiple times. This
is to solve problems in unittests, ideally we should always call the
function just once even in our testing suites.

Resolves-Bug: #1968606
Change-Id: Ic1532eb8de887ff1b1085206df11f53e22f7f524
Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
2022-04-13 05:49:15 +00:00
..
agents Set process name for agents 2020-07-01 12:28:29 +02:00
plugins Set process name for agents 2020-07-01 12:28:29 +02:00
server Pecan: Get loaded by paste deploy 2017-02-17 14:54:27 -06:00
services Set process name for agents 2020-07-01 12:28:29 +02:00
__init__.py Add eventlet monkey_patch helper 2015-03-24 08:44:00 -07:00
usage_audit.py Don't register config options on imports 2022-04-13 05:49:15 +00:00