2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-28 03:48:09 +00:00

Report 108 as temporary error

108 is a transient condition that requires
the update procedure to be done again.

Change-Id: Icf2108dda2ef56ac8fcd5710c3e67c6658dfdeee
This commit is contained in:
Jarrod Johnson 2019-02-27 09:45:02 -05:00
parent a1364d55a0
commit 5ebe762737

View File

@ -1476,7 +1476,7 @@ class XCCClient(IMMClient):
self._refresh_token()
rsp = self.wc.grab_json_response('/api/providers/fwupdate', json.dumps(
{'UPD_WebSetFileName': rsp['items'][0]['path']}))
if rsp.get('return', 0) == 25:
if rsp.get('return', 0) in (25, 108):
raise Exception('Temporary error validating update, try again')
if rsp.get('return', -1) != 0:
errmsg = repr(rsp) if rsp else self.wc.lastjsonerror