@@ -2765,11 +2765,11 @@ async def compose_up(compose: PodmanCompose, args):
2765
2765
if not args .no_build :
2766
2766
# `podman build` does not cache, so don't always build
2767
2767
build_args = argparse .Namespace (if_not_exists = (not args .build ), ** args .__dict__ )
2768
- build_result = await compose .commands ["build" ](compose , build_args )
2769
- if build_result != 0 :
2768
+ build_exit_code = await compose .commands ["build" ](compose , build_args )
2769
+ if build_exit_code != 0 :
2770
2770
log .error ("Build command failed" )
2771
2771
if not args .dry_run :
2772
- return build_result
2772
+ return build_exit_code
2773
2773
2774
2774
hashes = (
2775
2775
(
@@ -2806,16 +2806,16 @@ async def compose_up(compose: PodmanCompose, args):
2806
2806
podman_args = await container_to_args (
2807
2807
compose , cnt , detached = args .detach , no_deps = args .no_deps
2808
2808
)
2809
- subproc = await compose .podman .run ([], podman_command , podman_args )
2810
- if subproc is not None and subproc != 0 :
2811
- exit_code = subproc
2809
+ subproc_exit_code = await compose .podman .run ([], podman_command , podman_args )
2810
+ if subproc_exit_code is not None and subproc_exit_code != 0 :
2811
+ exit_code = subproc_exit_code
2812
2812
2813
- if podman_command == "run" and subproc is not None :
2814
- container_result = await run_container (
2813
+ if podman_command == "run" and subproc_exit_code is not None :
2814
+ container_exit_code = await run_container (
2815
2815
compose , cnt ["name" ], deps_from_container (args , cnt ), ([], "start" , [cnt ["name" ]])
2816
2816
)
2817
- if container_result is not None and container_result != 0 :
2818
- exit_code = container_result
2817
+ if container_exit_code is not None and container_exit_code != 0 :
2818
+ exit_code = container_exit_code
2819
2819
2820
2820
if args .dry_run :
2821
2821
return None
0 commit comments