summaryrefslogtreecommitdiff
path: root/heat/cmd/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat/cmd/api.py')
-rw-r--r--heat/cmd/api.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/heat/cmd/api.py b/heat/cmd/api.py
index b8ea0111c..4ab22b0d6 100644
--- a/heat/cmd/api.py
+++ b/heat/cmd/api.py
@@ -20,6 +20,12 @@ An OpenStack ReST API to Heat.
import eventlet
eventlet.monkey_patch(os=False)
+# Monkey patch the original current_thread to use the up-to-date _active
+# global variable. See https://bugs.launchpad.net/bugs/1863021 and
+# https://github.com/eventlet/eventlet/issues/592
+import __original_module_threading as orig_threading
+import threading # noqa
+orig_threading.current_thread.__globals__['_active'] = threading._active
import sys