mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-24 05:11:14 +00:00
Defer assigning of self.ipmicmd until login
Wait until logged in to assign. This way we have confirmation that ipmicmd is viable before trying to use it.
This commit is contained in:
@@ -345,7 +345,6 @@ class IpmiHandler(object):
|
||||
if ge[0] == -2:
|
||||
raise exc.TargetEndpointUnreachable(ge[1])
|
||||
raise
|
||||
self.ipmicmd = persistent_ipmicmds[(node, tenant)]
|
||||
|
||||
bootdevices = {
|
||||
'optical': 'cd'
|
||||
@@ -356,6 +355,7 @@ class IpmiHandler(object):
|
||||
self.broken = True
|
||||
self.error = response['error']
|
||||
else:
|
||||
self.ipmicmd = ipmicmd
|
||||
self.loggedin = True
|
||||
self.ipmicmd.setup_confluent_keyhandler()
|
||||
self._logevt.set()
|
||||
|
Reference in New Issue
Block a user