Fix docker_api status always showing degraded

deployer.py status lookup used f"{decky.name}-{svc}" verbatim, so
docker_api (underscore) resolved to "decky-devops-docker_api" while the
actual container is named "decky-devops-docker-api" (hyphen). Status
would always report it absent/degraded even when running.

Fix: normalize underscores to hyphens in the container name lookup,
consistent with how all service plugins name their containers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-04 04:50:29 -03:00
parent 3a6838e5c1
commit 1b44b30329

View File

@@ -169,7 +169,7 @@ def status() -> None:
for decky in config.deckies:
statuses = []
for svc in decky.services:
cname = f"{decky.name}-{svc}"
cname = f"{decky.name}-{svc.replace('_', '-')}"
st = running.get(cname, "absent")
color = "green" if st == "running" else "red"
statuses.append(f"[{color}]{svc}({st})[/{color}]")