| commit | f0120d71d73c4dc80084a3282074490e7ed4f934 | [log] [tgz] |
|---|---|---|
| author | peusterm <manuel.peuster@uni-paderborn.de> | Tue Mar 19 14:05:18 2019 +0100 |
| committer | peusterm <manuel.peuster@uni-paderborn.de> | Tue Mar 19 14:05:18 2019 +0100 |
| tree | 340c970f7b55df3b82490957d52ce1e722ec3df9 | |
| parent | 9435e9820d7ee3e4958995ff1c4032add2637350 [diff] |
Fix: Do monkey.patch_all() only once. Change-Id: I6d32a318e73adc0679303cdada5da79acfb7b744 Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
diff --git a/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py b/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py index 57097d9..45e7cb5 100755 --- a/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py +++ b/src/emuvim/api/openstack/openstack_dummies/base_openstack_dummy.py
@@ -28,10 +28,8 @@ import threading from flask import Flask, request from flask_restful import Api, Resource -from gevent import monkey from gevent.pywsgi import WSGIServer -monkey.patch_all() LOG = logging.getLogger("api.openstack.base")
diff --git a/src/emuvim/api/rest/rest_api_endpoint.py b/src/emuvim/api/rest/rest_api_endpoint.py index a9a863d..cefda5f 100755 --- a/src/emuvim/api/rest/rest_api_endpoint.py +++ b/src/emuvim/api/rest/rest_api_endpoint.py
@@ -28,7 +28,6 @@ import threading from flask import Flask from flask_restful import Api -from gevent import monkey from gevent.pywsgi import WSGIServer # need to import total module to set its global variable dcs @@ -45,7 +44,6 @@ import pkg_resources from os import path -monkey.patch_all() logging.basicConfig()