Update server/model/monitor.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e9043c7352
commit
3ae495e33b
@ -766,7 +766,7 @@ class Monitor extends BeanModel {
|
||||
if (res.data.State.Restarting) {
|
||||
bean.status = PENDING;
|
||||
bean.msg = "Container is reporting it is currently restarting";
|
||||
} else if (res.data.State.Health && res.data.State.Health !== "none") {
|
||||
} else if (res.data.State.Health && res.data.State.Health.Status !== "none") {
|
||||
// if healthchecks are disabled (?), Health MAY not be present
|
||||
if (res.data.State.Health.Status === "healthy") {
|
||||
bean.status = UP;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user