Merge "Ensure that the neutron server is properly monkey patched"
This commit is contained in:
commit
1566cfd697
@ -19,6 +19,7 @@
|
|||||||
# If ../neutron/__init__.py exists, add ../ to Python search path, so that
|
# If ../neutron/__init__.py exists, add ../ to Python search path, so that
|
||||||
# it will override what happens to be installed in /usr/(local/)lib/python...
|
# it will override what happens to be installed in /usr/(local/)lib/python...
|
||||||
|
|
||||||
|
import eventlet
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
@ -28,6 +29,8 @@ from neutron import service
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
eventlet.monkey_patch()
|
||||||
|
|
||||||
# the configuration will be read into the cfg.CONF global data structure
|
# the configuration will be read into the cfg.CONF global data structure
|
||||||
config.parse(sys.argv[1:])
|
config.parse(sys.argv[1:])
|
||||||
if not cfg.CONF.config_file:
|
if not cfg.CONF.config_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user