From 2cdfb3e6d4dbcfe0480909ebad5f5953533e732b Mon Sep 17 00:00:00 2001 From: Tanel Liiv Date: Thu, 18 May 2023 19:00:56 +0300 Subject: [PATCH] Fix stop/restart args stacking Signed-off-by: Tanel Liiv Signed-off-by: Tanel Liiv --- podman_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 4b64d23e..e3701418 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -2518,10 +2518,10 @@ async def transfer_service_status(compose, args, action): targets.extend(container_names_by_service[service]) if action in ["stop", "restart"]: targets = list(reversed(targets)) - podman_args = [] timeout_global = getattr(args, "timeout", None) tasks = [] for target in targets: + podman_args = [] if action != "start": timeout = timeout_global if timeout is None: