diff options
author | Adam Young <ayoung@redhat.com> | 2012-11-05 12:49:29 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2012-11-05 12:53:27 -0500 |
commit | ef65550328ced10be85da2370dfc64b46dfc6071 (patch) | |
tree | b23eb91c880218c30af441817fb7cad971fdc5d4 /bin | |
parent | a6ef09d94300718197a4fa8757fd3a7a45876963 (diff) | |
download | keystone-ef65550328ced10be85da2370dfc64b46dfc6071.tar.gz keystone-ef65550328ced10be85da2370dfc64b46dfc6071.tar.xz keystone-ef65550328ced10be85da2370dfc64b46dfc6071.zip |
monkeypatch cms Popen
Bug 1074257
Change-Id: I1372204c1e128aa664840e09b76fe979064d9efb
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/keystone-all | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/keystone-all b/bin/keystone-all index 8867f455..a51bb2c6 100755 --- a/bin/keystone-all +++ b/bin/keystone-all @@ -3,6 +3,7 @@ import greenlet import eventlet +from eventlet.green import subprocess import logging import os import signal @@ -22,6 +23,7 @@ if os.path.exists(os.path.join(possible_topdir, from paste import deploy from keystone import config +from keystone.common import cms from keystone.common import wsgi from keystone.common import utils from keystone.openstack.common import importutils @@ -68,6 +70,9 @@ def serve(*servers): except greenlet.GreenletExit: pass +def monkeypatch_cms(): + cms.Popen = subprocess.Popen + if __name__ == '__main__': dev_conf = os.path.join(possible_topdir, @@ -93,6 +98,7 @@ if __name__ == '__main__': monkeypatch_thread = not CONF._cli_values['standard_threads'] eventlet.patcher.monkey_patch(all=False, socket=True, time=True, thread=monkeypatch_thread) + monkeypatch_cms() options = deploy.appconfig('config:%s' % CONF.config_file[0]) |