summaryrefslogtreecommitdiff
path: root/nova/service.py
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-03-08 15:16:55 +0000
committerGerrit Code Review <review@openstack.org>2018-03-08 15:16:56 +0000
commit2b9c7970fcdd9c7747656d662319c811a9895c20 (patch)
treece67577c966e73c511e445b5490bb09a7d72cccf /nova/service.py
parentaa1fbbb7cda8a4f6da61b55704ffaba0298ada46 (diff)
parentef6f4e4c8ec82e2c9f9988fe2e04591ee01220e6 (diff)
downloadnova-2b9c7970fcdd9c7747656d662319c811a9895c20.tar.gz
Merge "Refactor WSGI apps and utils to limit imports"
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/service.py b/nova/service.py
index ffab3952bf..2a783314ec 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -27,6 +27,7 @@ import oslo_messaging as messaging
from oslo_service import service
from oslo_utils import importutils
+from nova.api import wsgi as api_wsgi
from nova import baserpc
from nova import conductor
import nova.conf
@@ -326,7 +327,7 @@ class WSGIService(service.Service):
self.binary = 'nova-%s' % name
self.topic = None
self.manager = self._get_manager()
- self.loader = loader or wsgi.Loader()
+ self.loader = loader or api_wsgi.Loader()
self.app = self.loader.load_app(name)
# inherit all compute_api worker counts from osapi_compute
if name.startswith('openstack_compute_api'):