diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 66be7b89..57414097 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -1928,6 +1928,7 @@ class XCCClient(IMMClient): raise Exception('Unexpected result starting update: %s' % errmsg) complete = False while not complete: + self._refresh_token() ipmisession.Session.pause(3) rsp = self.wc.grab_json_response( '/api/dataset/imm_firmware_progress') diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index d43795d9..6408d630 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -876,6 +876,7 @@ class OEMHandler(generic.OEMHandler): raise Exception('Unexpected result starting update: %s' % errmsg) complete = False while not complete: + self._refresh_token() time.sleep(3) rsp = self.wc.grab_json_response( '/api/dataset/imm_firmware_progress')