diff --git a/quantum/api/__init__.py b/quantum/api/__init__.py index e30a54c034..4f87171a13 100644 --- a/quantum/api/__init__.py +++ b/quantum/api/__init__.py @@ -29,6 +29,8 @@ warnings.warn( _('You are using old configuration values for the api-paste config. ' 'Please update for Neutron.') ) -sys.modules['quantum.api'] = api sys.modules['quantum.api.extensions'] = extensions sys.modules['quantum.api.v2'] = v2 +# The following assigment must be performed at the end of the module. +# Otherwise local variables will be overwritten. +sys.modules['quantum.api'] = api