mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-17 21:23:18 +00:00
Patch import of pyghmi
Now that the problematic use of an os pipe is no more, go ahead and patch pyghmi in a straightforward way. This was needed for the sake of pyghmi plugins that use a webclient.
This commit is contained in:
parent
bb0e256a98
commit
df74753908
@ -25,13 +25,10 @@ import eventlet.greenpool as greenpool
|
||||
import eventlet.queue as queue
|
||||
import pyghmi.constants as pygconstants
|
||||
import pyghmi.exceptions as pygexc
|
||||
import pyghmi.ipmi.console as console
|
||||
import pyghmi.ipmi.command as ipmicommand
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user