Skip to content

Commit

Permalink
Fix stop/restart args stacking
Browse files Browse the repository at this point in the history
Signed-off-by: Tanel Liiv <[email protected]>
Signed-off-by: Tanel Liiv <[email protected]>
  • Loading branch information
Tanel Liiv authored and p12tic committed Mar 9, 2024
1 parent 60137eb commit 2cdfb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2cdfb3e

Please sign in to comment.