Immediate Reboot: Move to ForceRestart
ResetType ForceRestart was recently added.
Use it for immediate reboot.
This allows the GUI to make only one call.
Change-Id: I2a5f59d651c0e17cb6c3655e0e93250a031f89c2
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/src/store/modules/Control/ControlStore.js b/src/store/modules/Control/ControlStore.js
index 6f9ced4..f88f2aa 100644
--- a/src/store/modules/Control/ControlStore.js
+++ b/src/store/modules/Control/ControlStore.js
@@ -64,11 +64,8 @@
commit('setOperationInProgress', false);
},
async hostHardReboot({ dispatch, commit }) {
- // TODO: Update when ForceWarmReboot property
- // available
- dispatch('hostPowerChange', { ResetType: 'ForceOff' });
- await checkForHostStatus.bind(this, 'off')();
- dispatch('hostPowerChange', { ResetType: 'On' });
+ const data = { ResetType: 'ForceRestart' };
+ dispatch('hostPowerChange', data);
await checkForHostStatus.bind(this, 'on')();
commit('setOperationInProgress', false);
},