From aa998cd26673ea899a569243a4c893f29a74e4e6 Mon Sep 17 00:00:00 2001 From: Elsa Date: Wed, 9 Apr 2025 08:51:39 +0800 Subject: [PATCH] Move variable location --- podman_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 69f3cbc..45d777f 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -2760,7 +2760,6 @@ def deps_from_container(args, cnt): @cmd_run(podman_compose, "up", "Create and start the entire stack or some of its services") async def compose_up(compose: PodmanCompose, args): excluded = get_excluded(compose, args) - exit_code = 0 if not args.no_build: # `podman build` does not cache, so don't always build @@ -2799,6 +2798,7 @@ async def compose_up(compose: PodmanCompose, args): podman_command = "run" if args.detach and not args.no_start else "create" await create_pods(compose, args) + exit_code = 0 for cnt in compose.containers: if cnt["_service"] in excluded: log.debug("** skipping: %s", cnt["name"])