From ccb71f0bd6b91b4344cf9a776a433528a5771217 Mon Sep 17 00:00:00 2001 From: Jagpal Singh Gill Date: Tue, 18 Jun 2024 15:21:08 -0700 Subject: remove setApplyTimeImmediate and its usage BMCWeb is dropping the support for patch for ApplyOptions, hence remove the setApplyTimeImmediate and its corresponding usage from webui. The related patch from bmcweb is as under - https://gerrit.openbmc.org/c/openbmc/bmcweb/+/72150 Change-Id: I4ef64485103db843e1280bc5b8bd8be63813c368 Signed-off-by: Jagpal Singh Gill --- src/store/modules/Operations/FirmwareStore.js | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'src/store') diff --git a/src/store/modules/Operations/FirmwareStore.js b/src/store/modules/Operations/FirmwareStore.js index 43a8e079..7dce2316 100644 --- a/src/store/modules/Operations/FirmwareStore.js +++ b/src/store/modules/Operations/FirmwareStore.js @@ -124,25 +124,7 @@ const FirmwareStore = { }) .catch((error) => console.log(error)); }, - setApplyTimeImmediate({ commit }) { - const data = { - HttpPushUriOptions: { - HttpPushUriApplyTime: { - ApplyTime: 'Immediate', - }, - }, - }; - return api - .patch('/redfish/v1/UpdateService', data) - .then(() => commit('setApplyTime', 'Immediate')) - .catch((error) => console.log(error)); - }, - async uploadFirmware({ state, dispatch }, image) { - if (state.applyTime !== 'Immediate') { - // ApplyTime must be set to Immediate before making - // request to update firmware - await dispatch('setApplyTimeImmediate'); - } + async uploadFirmware({ state }, image) { return await api .post(state.httpPushUri, image, { headers: { 'Content-Type': 'application/octet-stream' }, @@ -152,16 +134,11 @@ const FirmwareStore = { throw new Error(i18n.t('pageFirmware.toast.errorUpdateFirmware')); }); }, - async uploadFirmwareTFTP({ state, dispatch }, fileAddress) { + async uploadFirmwareTFTP(fileAddress) { const data = { TransferProtocol: 'TFTP', ImageURI: fileAddress, }; - if (state.applyTime !== 'Immediate') { - // ApplyTime must be set to Immediate before making - // request to update firmware - await dispatch('setApplyTimeImmediate'); - } return await api .post( '/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate', -- cgit v1.2.3