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 <paligill@gmail.com>
diff --git a/src/store/modules/Operations/FirmwareStore.js b/src/store/modules/Operations/FirmwareStore.js
index 43a8e07..7dce231 100644
--- a/src/store/modules/Operations/FirmwareStore.js
+++ b/src/store/modules/Operations/FirmwareStore.js
@@ -124,25 +124,7 @@
})
.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 @@
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',