mirror of
https://github.com/xcat2/confluent.git
synced 2026-08-03 16:07:00 +00:00
Do not report an interrupted firmware update as complete
The retry counter is there to ride out a few unanswered polls, but exhausting it broke out of the loop with complete still unset and fell through to the 'complete' return, so an SMM that stopped answering part way through an apply was reported to the operator as updated. Raise instead; a genuine finish still leaves the loop on the progress reaching 100.
This commit is contained in:
@@ -1029,7 +1029,7 @@ class SMMClient(object):
|
||||
progdata, status, _ = await wc.grab_response_with_status('/data', 'get=fwProgress,fwUpdate')
|
||||
except Exception:
|
||||
if tries > 2:
|
||||
break
|
||||
raise
|
||||
tries += 1
|
||||
continue
|
||||
if status != 200:
|
||||
|
||||
Reference in New Issue
Block a user