Move Monkey patch back to being as early as possible

Commit 6ca8cb84fd moved the patching early in the loading process.
After some reshuffling in the agents, this might not be as early
as possible, so move them closer to their main()'s.

Change-Id: Ifddd3a3d87ef6cc06788e9b4c40d6a6d981ebe0c
This commit is contained in:
armando-migliaccio 2015-01-17 00:14:28 -08:00
parent b3db517a52
commit 2025eb0c15
4 changed files with 6 additions and 4 deletions

View File

@ -14,8 +14,6 @@
#
import eventlet
eventlet.monkey_patch()
import netaddr
from oslo.config import cfg
from oslo import messaging

View File

@ -16,6 +16,9 @@
import sys
import eventlet
eventlet.monkey_patch()
from oslo.config import cfg
from neutron.agent.common import config

View File

@ -18,8 +18,6 @@ import os
import socket
import eventlet
eventlet.monkey_patch()
import httplib2
from neutronclient.v2_0 import client
from oslo.config import cfg

View File

@ -14,6 +14,9 @@
import sys
import eventlet
eventlet.monkey_patch()
from oslo.config import cfg
from neutron.agent.common import config as agent_conf