Fix: correct Docker Go template syntax in sys-ctl-rpr-docker-soft script

Replaced over-escaped '{{{{.Names}}}}' with proper '{{.Names}}'
in docker ps commands. This resolves 'failed to parse template:
unexpected "{" in command' errors during unhealthy/exited
container detection.

Reference: https://chatgpt.com/share/68addfd9-fa78-800f-abda-49161699e673
This commit is contained in:
Kevin Veen-Birkenbach 2025-08-26 18:25:25 +02:00
parent 19a51fd718
commit af97e71976
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E

View File

@ -124,10 +124,10 @@ def main(base_directory: str, manipulation_services: List[str], timeout: int | N
wait_while_manipulation_running(manipulation_services, waiting_time=600, timeout=timeout)
unhealthy_container_names = print_bash(
"docker ps --filter health=unhealthy --format '{{{{.Names}}}}'"
"docker ps --filter health=unhealthy --format '{{.Names}}'"
)
exited_container_names = print_bash(
"docker ps --filter status=exited --format '{{{{.Names}}}}'"
"docker ps --filter status=exited --format '{{.Names}}'"
)
failed_containers = unhealthy_container_names + exited_container_names