summaryrefslogtreecommitdiff
path: root/keystoneclient/common
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2014-02-06 14:11:12 -0500
committerAdam Young <ayoung@redhat.com>2014-02-06 14:29:23 -0500
commit9dc231999b44a56f02a1c464110d17fa4c7d1bb6 (patch)
tree5be3e2354572d423d061b68eadb6de2e12409d34 /keystoneclient/common
parenteab811c307db77740bd00ee1a37d2e93c1ca622e (diff)
downloadpython-keystoneclient-9dc231999b44a56f02a1c464110d17fa4c7d1bb6.tar.gz
Check for any monkeypatching
Checking oinly for monkeypatching of the ``os`` module is insufficient. A process might have chosen not to patch ``os`` but still needs to use the eventlet version of Popen to deal with proper forks. This version checks if any modules have been monkeypatched with the eventlet versions. Closes-Bug: #1277231 Change-Id: Ia8d7150e9e7ced58132e8e90e7ad68fb3c7c3b9f
Diffstat (limited to 'keystoneclient/common')
-rw-r--r--keystoneclient/common/cms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/common/cms.py b/keystoneclient/common/cms.py
index 0e6a5b7..2c1703c 100644
--- a/keystoneclient/common/cms.py
+++ b/keystoneclient/common/cms.py
@@ -41,7 +41,7 @@ def _ensure_subprocess():
if not subprocess:
try:
from eventlet import patcher
- if patcher.already_patched.get('os'):
+ if patcher.already_patched:
from eventlet.green import subprocess
else:
import subprocess