From ac2b2f02b5497d8e95187eeb0ffed6467d7f73d3 Mon Sep 17 00:00:00 2001 From: OHMURA Kei Date: Tue, 18 Dec 2012 23:02:18 +0900 Subject: [PATCH] ryu-manager: fix keyError Exception can be be caused by importing the threading module before monkey.patch_all(). This patch fixes the following keyError: $ ryu-manager --version ryu-manager 1.5 Exception KeyError: KeyError(30027824,) in ignored Signed-off-by: OHMURA Kei Signed-off-by: FUJITA Tomonori --- bin/ryu-manager | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ryu-manager b/bin/ryu-manager index 002cc590..d1bf1302 100755 --- a/bin/ryu-manager +++ b/bin/ryu-manager @@ -17,13 +17,13 @@ # limitations under the License. import gevent +from gevent import monkey +monkey.patch_all() + import gflags import logging import sys -from gevent import monkey -monkey.patch_all() - from ryu import log log.early_init_log(logging.DEBUG)