diff options
author | OHMURA Kei <ohmura.kei@lab.ntt.co.jp> | 2012-12-18 23:02:18 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-12-19 21:01:38 +0900 |
commit | ac2b2f02b5497d8e95187eeb0ffed6467d7f73d3 (patch) | |
tree | 36782ef6a1066b027d3ea3a36e05bd30906017e9 /bin | |
parent | 76c9a16d23a007bb7c91bb8cb07844e6b717ac10 (diff) |
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 <module 'threading' from
'/usr/lib/python2.7/threading.pyc'> ignored
Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ryu-manager | 6 |
1 files 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) |