From b524af08b397542f1a15b59f4c01f90b7ec87a03 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 22 Apr 2016 17:15:17 -0400 Subject: [PATCH] Add back explicit patching of portions of pyghmi The previous commit produced significant problems. pyghmi late binds those values, so they must be explicitly patched. --- confluent_server/confluent/plugins/hardwaremanagement/ipmi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index 69cd3a1b..8d206857 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -29,6 +29,9 @@ console = eventlet.import_patched('pyghmi.ipmi.console') ipmicommand = eventlet.import_patched('pyghmi.ipmi.command') import socket +console.session.select = eventlet.green.select +console.session.threading = eventlet.green.threading + def exithandler(): console.session.iothread.join()