changeset 15:db3457d2e456

Move eventlet.monkey_patch to top
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Tue, 12 Feb 2013 09:10:10 +0100
parents 08bc320abed1
children 99842df807e9
files srxproxy.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/srxproxy.py	Mon Feb 11 17:25:51 2013 +0100
+++ b/srxproxy.py	Tue Feb 12 09:10:10 2013 +0100
@@ -1,5 +1,8 @@
 #!/usr/bin/env python
 
+import eventlet
+eventlet.monkey_patch()
+
 import datetime
 import sys
 
@@ -12,7 +15,6 @@
 from nova.network.manager import NetworkManager
 
 from ncclient import manager, operations
-import eventlet
 
 
 DELAY = 20
@@ -243,7 +245,6 @@
     FLAGS(sys.argv)
     log.setup()
     log.root.setLevel(log.DEBUG)
-    eventlet.monkey_patch()
     assoc_acc = Accumulator(DELAY)
     dis_acc = Accumulator(DELAY)
     connection = rpc.create_connection()