summaryrefslogtreecommitdiffstats
path: root/app/common
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-06-21 09:19:32 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-06-26 18:04:43 +0000
commitafcfda7b93704b41c0da3b0634e96f12fd9f91aa (patch)
treed68c84db66331a390d098c3fafdef70e65e81ba8 /app/common
parentc86ce3c9c7736ef199d885596b6fc745c7d8c86e (diff)
downloadphosphor-webui-afcfda7b93704b41c0da3b0634e96f12fd9f91aa.tar.gz
phosphor-webui-afcfda7b93704b41c0da3b0634e96f12fd9f91aa.zip
Fix cold reboot error
Cold reboot will check the host status by referring to the server_state property in the dataService instead of making API requests to check host/chassis status. TODO: Refactor other power control options to follow a similar pattern. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I74b1b78fa39caee514fbaea8492c8a5ad6f8145b
Diffstat (limited to 'app/common')
-rw-r--r--app/common/services/constants.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/common/services/constants.js b/app/common/services/constants.js
index e1839f5..dd1012c 100644
--- a/app/common/services/constants.js
+++ b/app/common/services/constants.js
@@ -91,11 +91,12 @@ window.angular && (function(angular) {
POWER_OP: 5000,
},
TIMEOUT: {
- ACTIVATION: 1000 * 60 * 10, // 10 mins
- DOWNLOAD_IMAGE: 1000 * 60 * 2, // 2 mins
- CHASSIS_OFF: 1000 * 60 * 5, // 5 mins
- HOST_ON: 1000 * 60 * 5, // 5 mins
- HOST_OFF: 1000 * 60 * 5, // 5 mins
+ ACTIVATION: 1000 * 60 * 10, // 10 mins
+ DOWNLOAD_IMAGE: 1000 * 60 * 2, // 2 mins
+ CHASSIS_OFF: 1000 * 60 * 5, // 5 mins
+ HOST_ON: 1000 * 60 * 5, // 5 mins
+ HOST_OFF: 1000 * 60 * 5, // 5 mins
+ HOST_OFF_IMMEDIATE: 1000 * 60 * 2 // 2 mins
},
MESSAGES: {
POLL: {
OpenPOWER on IntegriCloud