Say which machine is unreachable instead of FIX FAILED
The Bible TV PC's Wi-Fi dropped for ~30 s at 06:17 on 2026-10-11; the hold could not reach it and showed FIX FAILED, though nothing on the PC was broken. An ssh fix that cannot reach its machine now shows e.g. "BIBLE APP NOT REACHABLE". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1553,6 +1553,11 @@ def execute_fix(cfg, fix_id, chk):
|
||||
wake_on_lan(host["mac"], host.get("wake_broadcast"))
|
||||
log.info("FIX %s -> %s does not answer: Wake-on-LAN sent to %s", label, fix["host"], host["mac"])
|
||||
return WAKING
|
||||
if r.returncode == 255 and kind == "ssh":
|
||||
# The machine itself is off the network (e.g. the Bible TV PC's Wi-Fi dropped,
|
||||
# 2026-10-11): say so instead of a bare FIX FAILED.
|
||||
log.info("FIX %s -> %s not reachable: %s", label, fix["host"], detail)
|
||||
return "%s NOT\nREACHABLE" % fix.get("short", fix["host"].upper())
|
||||
log.info("FIX %s -> %s%s", label, "ok" if r.returncode == 0 else "exit %d" % r.returncode,
|
||||
(": " + detail) if detail else "")
|
||||
conn = chk.get("conn") or fix.get("conn")
|
||||
|
||||
Reference in New Issue
Block a user