mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +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:
parent
8eef064b9f
commit
e7bdb5ee7d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user