From af97e7197600da3d3995ec59042088de9b18eee0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 26 Aug 2025 18:25:25 +0200 Subject: [PATCH] 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 --- roles/sys-ctl-rpr-docker-soft/files/script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/sys-ctl-rpr-docker-soft/files/script.py b/roles/sys-ctl-rpr-docker-soft/files/script.py index 6e7179e9..9aeac0ee 100644 --- a/roles/sys-ctl-rpr-docker-soft/files/script.py +++ b/roles/sys-ctl-rpr-docker-soft/files/script.py @@ -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