small fix for down containers

This commit is contained in:
Janne Nowak 2023-05-17 23:18:29 +02:00
parent 891f09def7
commit f30f00655f

View File

@ -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) {