summaryrefslogtreecommitdiff
path: root/src/store/modules/Operations
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/Operations')
-rw-r--r--src/store/modules/Operations/FirmwareStore.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/store/modules/Operations/FirmwareStore.js b/src/store/modules/Operations/FirmwareStore.js
index c6639ff7..afc12e92 100644
--- a/src/store/modules/Operations/FirmwareStore.js
+++ b/src/store/modules/Operations/FirmwareStore.js
@@ -9,6 +9,7 @@ const FirmwareStore = {
bmcActiveFirmwareId: null,
hostActiveFirmwareId: null,
applyTime: null,
+ httpPushUri: null,
tftpAvailable: false,
},
getters: {
@@ -41,6 +42,7 @@ const FirmwareStore = {
setBmcFirmware: (state, firmware) => (state.bmcFirmware = firmware),
setHostFirmware: (state, firmware) => (state.hostFirmware = firmware),
setApplyTime: (state, applyTime) => (state.applyTime = applyTime),
+ setHttpPushUri: (state, httpPushUri) => (state.httpPushUri = httpPushUri),
setTftpUploadAvailable: (state, tftpAvailable) =>
(state.tftpAvailable = tftpAvailable),
},
@@ -113,8 +115,9 @@ const FirmwareStore = {
data?.Actions?.['#UpdateService.SimpleUpdate']?.[
'TransferProtocol@Redfish.AllowableValues'
];
-
commit('setApplyTime', applyTime);
+ const httpPushUri = data.HttpPushUri;
+ commit('setHttpPushUri', httpPushUri);
if (allowableActions?.includes('TFTP')) {
commit('setTftpUploadAvailable', true);
}
@@ -141,7 +144,7 @@ const FirmwareStore = {
await dispatch('setApplyTimeImmediate');
}
return await api
- .post('/redfish/v1/UpdateService', image, {
+ .post(state.httpPushUri, image, {
headers: { 'Content-Type': 'application/octet-stream' },
})
.catch((error) => {