summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'src/store')
-rw-r--r--src/store/modules/Configuration/FirmwareStore.js8
-rw-r--r--src/store/modules/Configuration/NetworkSettingsStore.js4
-rw-r--r--src/store/modules/Control/PowerControlStore.js4
-rw-r--r--src/store/modules/GlobalStore.js4
-rw-r--r--src/store/modules/Health/EventLogStore.js4
-rw-r--r--src/store/modules/Overview/OverviewStore.js4
6 files changed, 14 insertions, 14 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;
diff --git a/src/store/modules/Configuration/NetworkSettingsStore.js b/src/store/modules/Configuration/NetworkSettingsStore.js
index 3b1f2320..f6912c87 100644
--- a/src/store/modules/Configuration/NetworkSettingsStore.js
+++ b/src/store/modules/Configuration/NetworkSettingsStore.js
@@ -13,8 +13,8 @@ const NetworkSettingsStore = {
(state.ethernetData = ethernetData)
},
actions: {
- getEthernetData({ commit }) {
- api
+ async getEthernetData({ commit }) {
+ return await api
.get('/redfish/v1/Managers/bmc/EthernetInterfaces')
.then(response =>
response.data.Members.map(
diff --git a/src/store/modules/Control/PowerControlStore.js b/src/store/modules/Control/PowerControlStore.js
index 63ede2d4..78585395 100644
--- a/src/store/modules/Control/PowerControlStore.js
+++ b/src/store/modules/Control/PowerControlStore.js
@@ -17,8 +17,8 @@ const PowerControlStore = {
(state.powerConsumptionValue = powerConsumptionValue)
},
actions: {
- getPowerControl({ commit }) {
- api
+ async getPowerControl({ commit }) {
+ return await api
.get('/redfish/v1/Chassis/chassis/Power')
.then(response => {
const powerControl = response.data.PowerControl;
diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js
index c9e92a76..879d8d89 100644
--- a/src/store/modules/GlobalStore.js
+++ b/src/store/modules/GlobalStore.js
@@ -40,8 +40,8 @@ const GlobalStore = {
(state.hostStatus = hostStateMapper(hostState))
},
actions: {
- getBmcTime({ commit }) {
- api
+ async getBmcTime({ commit }) {
+ return await api
.get('/redfish/v1/Managers/bmc')
.then(response => {
const bmcDateTime = response.data.DateTime;
diff --git a/src/store/modules/Health/EventLogStore.js b/src/store/modules/Health/EventLogStore.js
index d2f970ae..418e4558 100644
--- a/src/store/modules/Health/EventLogStore.js
+++ b/src/store/modules/Health/EventLogStore.js
@@ -62,8 +62,8 @@ const EventLogStore = {
setHealthStatus: (state, status) => (state.healthStatus = status)
},
actions: {
- getEventLogData({ commit }) {
- api
+ async getEventLogData({ commit }) {
+ return await api
.get('/xyz/openbmc_project/logging/enumerate')
.then(response => {
const responseData = response.data.data;
diff --git a/src/store/modules/Overview/OverviewStore.js b/src/store/modules/Overview/OverviewStore.js
index 30558d82..314728cc 100644
--- a/src/store/modules/Overview/OverviewStore.js
+++ b/src/store/modules/Overview/OverviewStore.js
@@ -23,8 +23,8 @@ const OverviewStore = {
(state.serverSerialNumber = serverSerialNumber)
},
actions: {
- getServerInfo({ commit }) {
- api
+ async getServerInfo({ commit }) {
+ return await api
.get('/redfish/v1/Systems/system')
.then(response => {
const serverInfo = response.data;