2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Fix invocation of monotonic_time

This commit is contained in:
Jarrod Johnson 2022-05-26 18:07:19 -04:00
parent ff698ea06b
commit e4e859c798

View File

@ -514,10 +514,10 @@ class IpmiHandler(object):
raise exc.TargetEndpointUnreachable(ge.strerror)
raise
self.ipmicmd = persistent_ipmicmds[(node, tenant)]
giveup = util._monotonic_time() + 60
giveup = util.monotonic_time() + 60
while not self.ipmicmd.ipmi_session.broken and not self.ipmicmd.ipmi_session.logged:
self.ipmicmd.ipmi_session.wait_for_rsp(3)
if util._monotonic_time() > giveup:
if util.monotonic_time() > giveup:
self.ipmicmd.ipmi_session.broken = True
bootdevices = {