Hide Forgot
Cloned from launchpad blueprint https://blueprints.launchpad.net/oslo/+spec/remove-import-side-effects. Description: Most apps use oslo.config by relying on options to be registered as code is loaded. Many modules throughout the OpenStack code base have blocks that import the global config object from oslo.config and then register options on the object. This means importing a module changes global state shared by the application, in a way that cannot be undone or reproduced by unit tests. This proposal describes a way to avoid having import-time side-effects while maintaining or improving our current level of discoverability. Specification URL (additional information): https://etherpad.openstack.org/icehouse-oslo-config-import-side-effects