From f30f00655f4276b92e047bc869435e33739c67e3 Mon Sep 17 00:00:00 2001 From: Janne Nowak Date: Wed, 17 May 2023 23:18:29 +0200 Subject: [PATCH] small fix for down containers --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 0b2cab703..42fb20c6a 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -575,7 +575,7 @@ class Monitor extends BeanModel { log.debug("monitor", `[${this.name}] Axios Request`); let res = await axios.request(options); - if (res.data.State.Health && res.data.State.Health.Status !== "healthy") { + if (res.data.State.Health && res.data.State.Health.Status !== "healthy" && res.data.State.Running) { bean.status = PENDING; bean.msg = res.data.State.Health.Status; } else if (res.data.State.Running) {