mirror of
https://opendev.org/x/pyghmi
synced 2026-05-14 18:34:21 +00:00
Refresh token between verify
The first verify phase may be delayed, and in such a case could straddle bad timing of the token expiry. Refresh between the phases to mitigate risk of expiring the token in the middle of running. Change-Id: Ia96fa8824a2e9e8eff8fd2d353b1b0bc7fa710a7
This commit is contained in:
@@ -1466,6 +1466,7 @@ class XCCClient(IMMClient):
|
||||
if rsp.get('return', -1) != 0:
|
||||
errmsg = repr(rsp) if rsp else self.wc.lastjsonerror
|
||||
raise Exception('Unexpected return to set filename: ' + errmsg)
|
||||
self._refresh_token()
|
||||
progress({'phase': 'validating',
|
||||
'progress': 25.0})
|
||||
rsp = self.wc.grab_json_response('/api/providers/fwupdate', json.dumps(
|
||||
|
||||
Reference in New Issue
Block a user