mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-27 05:55:15 +02:00
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:
parent
19a51fd718
commit
af97e71976
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user