Allow compute driver to load correctly
In certain environments the load order can be confused between nova and zun. This can cause boot issues where 'No module named cmd.compute' can be thrown because the python code is looking in zun/nova for that driver. This change extends the declare_namespace code to allow for the other projects to properly load. Similar fix: https://review.openstack.org/#/c/311724/ Closes-Bug: #1650107 Change-Id: Ibb12f73a378dcc30a0483422226f57d52b53fde9
This commit is contained in:
parent
27229f5b50
commit
2909374a77
@ -0,0 +1,14 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
# Required to play nicely with namespace composition (PEP420).
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
Loading…
Reference in New Issue
Block a user