fix reboot BMC error message
Remove getLastBmcRebootTime after post BMC reboot action since BMC
connection will be lost after reboot. The last BMC reboot time will be
got after reboot BMC page loading, and after BMC reboot, user need
reload the WEB UI, so there is also no need to send Redfish request to
get the last BMC reboot time just after the post the BMC reboot action.
Change-Id: Ic5d0cbca23a61610cc387a4046b85e9c20c255ea
Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
diff --git a/src/store/modules/Operations/ControlStore.js b/src/store/modules/Operations/ControlStore.js
index efcdf62..320df6f 100644
--- a/src/store/modules/Operations/ControlStore.js
+++ b/src/store/modules/Operations/ControlStore.js
@@ -71,14 +71,13 @@
})
.catch((error) => console.log(error));
},
- async rebootBmc({ dispatch }) {
+ async rebootBmc() {
const data = { ResetType: 'GracefulRestart' };
return await api
.post(
`${await this.dispatch('global/getBmcPath')}/Actions/Manager.Reset`,
data,
)
- .then(() => dispatch('getLastBmcRebootTime'))
.then(() => i18n.t('pageRebootBmc.toast.successRebootStart'))
.catch((error) => {
console.log(error);