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:
@@ -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}]")
|
||||
|
||||
Reference in New Issue
Block a user