mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Merge pull request #2527 from chakflying/fix/docker-down
Fix: Fix incorrect handling for container down
This commit is contained in:
commit
2e022789f6
1 changed files with 3 additions and 1 deletions
|
@ -514,7 +514,9 @@ class Monitor extends BeanModel {
|
|||
let res = await axios.request(options);
|
||||
if (res.data.State.Running) {
|
||||
bean.status = UP;
|
||||
bean.msg = "";
|
||||
bean.msg = res.data.State.Status;
|
||||
} else {
|
||||
throw Error("Container State is " + res.data.State.Status);
|
||||
}
|
||||
} else if (this.type === "mqtt") {
|
||||
bean.msg = await mqttAsync(this.hostname, this.mqttTopic, this.mqttSuccessMessage, {
|
||||
|
|
Loading…
Reference in a new issue