2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Unconditionally register key handler

For reasons not entirely understood, we can
have an ipmi command object without registering
a key handler.  Unconditionally register the key handler
on each use of the command object.  This still saves the
network load of logging in, so it's not a terrible workaround.
This commit is contained in:
Jarrod Johnson 2016-09-28 14:59:43 -04:00
parent baf8587759
commit fbd5059ade

View File

@ -345,6 +345,7 @@ class IpmiHandler(object):
if ge[0] == -2:
raise exc.TargetEndpointUnreachable(ge[1])
self.ipmicmd = persistent_ipmicmds[(node, tenant)]
self.ipmicmd.setup_confluent_keyhandler()
bootdevices = {
'optical': 'cd'
@ -356,7 +357,6 @@ class IpmiHandler(object):
self.error = response['error']
else:
self.loggedin = True
ipmicmd.setup_confluent_keyhandler()
self._logevt.set()
def handle_request(self):