mirror of
https://opendev.org/x/pyghmi
synced 2025-04-13 16:57:46 +00:00
Refresh token during validation
XCC may take a while validating, and the token must be refreshed to avoid chance of expiry. Change-Id: I0e78008dba6bc214876ca286989b01d2f89733bb
This commit is contained in:
parent
520b7dbeca
commit
7002c1e8f3
@ -1469,6 +1469,7 @@ class XCCClient(IMMClient):
|
||||
raise Exception('Unexpected return to verify: ' + repr(rsp))
|
||||
verifystatus = 0
|
||||
while verifystatus != 1:
|
||||
self._refresh_token()
|
||||
rsp = self.wc.grab_json_response(
|
||||
'/api/providers/fwupdate',
|
||||
json.dumps({'UPD_WebVerifyUploadFileStatus': 1}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user