Merge pull request #696 from dkull/devel

Fix stop/restart args stacking
This commit is contained in:
Povilas Kanapickas 2024-03-09 12:42:54 +02:00 committed by GitHub
commit e0fc9a7546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2518,10 +2518,10 @@ async def transfer_service_status(compose, args, action):
targets.extend(container_names_by_service[service]) targets.extend(container_names_by_service[service])
if action in ["stop", "restart"]: if action in ["stop", "restart"]:
targets = list(reversed(targets)) targets = list(reversed(targets))
podman_args = []
timeout_global = getattr(args, "timeout", None) timeout_global = getattr(args, "timeout", None)
tasks = [] tasks = []
for target in targets: for target in targets:
podman_args = []
if action != "start": if action != "start":
timeout = timeout_global timeout = timeout_global
if timeout is None: if timeout is None: