mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00: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:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user