summaryrefslogtreecommitdiff
path: root/nova/wsgi.py
diff options
context:
space:
mode:
authorRyan Rossiter <rlrossit@us.ibm.com>2015-06-25 14:41:49 +0000
committerRyan Rossiter <rlrossit@us.ibm.com>2015-08-13 20:44:41 +0000
commit6179854ae77960d4ae883349626069023b407cb0 (patch)
treefc4677ed5bf139574a0c0573fff46b569404f6a8 /nova/wsgi.py
parenta013f9d71b68843d7f863aff81dd1f66ec0f04da (diff)
downloadnova-6179854ae77960d4ae883349626069023b407cb0.tar.gz
Add hacking check for eventlet.spawn()
Change Id52c30bb5ded2184d772e6026b0f04f9a0efeb55 added a hacking check for greenthread.spawn(). Since eventlet.spawn() calls greenthread.spawn() under the covers, it should also be checked. Because there are still occurrences of eventlet.spawn(), these were also cleaned up in order to pass the added hacking check. Co-Authored-By: Qin Zhao <chaochin@gmail.com> Change-Id: Ia125b4ad5e84bf48091af5a7a483b89629f0ec31 Related-Bug: #1404268 Closes-Bug: #1468513
Diffstat (limited to 'nova/wsgi.py')
-rw-r--r--nova/wsgi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py
index b3d3f33239..6d18215a9a 100644
--- a/nova/wsgi.py
+++ b/nova/wsgi.py
@@ -39,6 +39,7 @@ import webob.exc
from nova import exception
from nova.i18n import _, _LE, _LI
+from nova import utils
wsgi_opts = [
cfg.StrOpt('api_paste_config',
@@ -236,7 +237,7 @@ class Server(service.ServiceBase):
if self._max_url_len:
wsgi_kwargs['url_length_limit'] = self._max_url_len
- self._server = eventlet.spawn(**wsgi_kwargs)
+ self._server = utils.spawn(**wsgi_kwargs)
def reset(self):
"""Reset server greenpool size to default.