diff options
author | Sean Zhang <xiazhang@nvidia.com> | 2024-06-26 09:08:47 +0300 |
---|---|---|
committer | xiazhang <xiazhang@nvidia.com> | 2024-07-11 18:20:53 +0300 |
commit | 08039ab7c0764ce7ac7b76637ad57a7b1711bf87 (patch) | |
tree | 0f002788503b0cb470eb09231c65258a29f76f45 | |
parent | db47b7e1f4b8174698b1894edabf57d022fac609 (diff) | |
download | webui-vue-08039ab7c0764ce7ac7b76637ad57a7b1711bf87.tar.xz |
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>
-rw-r--r-- | src/store/modules/Operations/ControlStore.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/store/modules/Operations/ControlStore.js b/src/store/modules/Operations/ControlStore.js index efcdf627..320df6f9 100644 --- a/src/store/modules/Operations/ControlStore.js +++ b/src/store/modules/Operations/ControlStore.js @@ -71,14 +71,13 @@ const ControlStore = { }) .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); |