Files
neutron/neutron/wsgi/api.py
Rodolfo Alonso Hernandez b1ebfd62d5 [eventlet-removal] Remove the usage of eventlet in the Neutron API (2)
In [1], it was missing the removal of ``monkey_patch()`` call. The
Neutron API no longer calls/needs eventlet.

[1]https://review.opendev.org/c/openstack/neutron/+/938659

Related-Bug: #2087953
Change-Id: If367919c0dd54a4db956b50c2b0712fcd41b12a9
2025-02-13 08:41:58 +00:00

24 lines
852 B
Python

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""WSGI application entry-point for Neutron API."""
import threading # noqa:E402
from neutron import server # noqa:E402
from neutron.server import api # noqa:E402
application = None
lock = threading.Lock()
with lock:
if application is None:
application = server.boot_server(api.api_server)