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

Defer TLS key handler registration

Wait until the object is logged in before trying to set
the key handler.  It carries some prerequisite on talking
to the BMC, so it is better handled in the logged handler.
This commit is contained in:
Jarrod Johnson 2017-01-03 16:00:27 -05:00
parent 8eef064b9f
commit e7bdb5ee7d

View File

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