summaryrefslogtreecommitdiff
path: root/src/store/modules/Configuration/FirmwareStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/Configuration/FirmwareStore.js')
-rw-r--r--src/store/modules/Configuration/FirmwareStore.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/modules/Configuration/FirmwareStore.js b/src/store/modules/Configuration/FirmwareStore.js
index b76748f3..cae74ebc 100644
--- a/src/store/modules/Configuration/FirmwareStore.js
+++ b/src/store/modules/Configuration/FirmwareStore.js
@@ -17,8 +17,8 @@ const FirmwareStore = {
(state.hostFirmwareVersion = hostFirmwareVersion)
},
actions: {
- getBmcFirmware({ commit }) {
- api
+ async getBmcFirmware({ commit }) {
+ return await api
.get('/redfish/v1/Managers/bmc')
.then(response => {
const bmcFirmwareVersion = response.data.FirmwareVersion;
@@ -28,8 +28,8 @@ const FirmwareStore = {
console.log(error);
});
},
- getHostFirmware({ commit }) {
- api
+ async getHostFirmware({ commit }) {
+ return await api
.get('/redfish/v1/Systems/system')
.then(response => {
const hostFirmwareVersion = response.data.BiosVersion;