pull/3169/head
Janne Nowak 2 years ago
parent f653aba735
commit 6b5e179bb0

@ -579,12 +579,10 @@ class Monitor extends BeanModel {
bean.status = PENDING; bean.status = PENDING;
bean.msg = res.data.State.Health.Status; bean.msg = res.data.State.Health.Status;
log.debug("monitor", `[${this.name}] Monitor is ${res.data.State.Health.Status}`); log.debug("monitor", `[${this.name}] Monitor is ${res.data.State.Health.Status}`);
} } else if (res.data.State.Running) {
else if (res.data.State.Running) {
bean.status = UP; bean.status = UP;
bean.msg = res.data.State.Health ? res.data.State.Health.Status : res.data.State.Status; bean.msg = res.data.State.Health ? res.data.State.Health.Status : res.data.State.Status;
} } else {
else {
throw Error("Container State is " + res.data.State.Status); throw Error("Container State is " + res.data.State.Status);
} }
} else if (this.type === "mqtt") { } else if (this.type === "mqtt") {

Loading…
Cancel
Save