2
0
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:
Jarrod Johnson
2017-01-04 09:17:07 -05:00
parent e7bdb5ee7d
commit b3c28ad33e

View File

@@ -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()