From f0120d71d73c4dc80084a3282074490e7ed4f934 Mon Sep 17 00:00:00 2001 From: peusterm Date: Tue, 19 Mar 2019 14:05:18 +0100 Subject: [PATCH] Fix: Do monkey.patch_all() only once. Change-Id: I6d32a318e73adc0679303cdada5da79acfb7b744 Signed-off-by: peusterm --- .../api/openstack/openstack_dummies/base_openstack_dummy.py | 2 -- src/emuvim/api/rest/rest_api_endpoint.py | 2 -- 2 files changed, 4 deletions(-) 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 logging 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 logging 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 @@ from monitor import MonitorInterfaceAction, MonitorFlowAction, MonitorLinkAction import pkg_resources from os import path -monkey.patch_all() logging.basicConfig() -- 2.25.1