Skip to content

Commit 188989c

Browse files
committed
Rename variables related to exit_code
1 parent 5cce7ed commit 188989c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

podman_compose.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -2765,11 +2765,11 @@ async def compose_up(compose: PodmanCompose, args):
27652765
if not args.no_build:
27662766
# `podman build` does not cache, so don't always build
27672767
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:
27702770
log.error("Build command failed")
27712771
if not args.dry_run:
2772-
return build_result
2772+
return build_exit_code
27732773

27742774
hashes = (
27752775
(
@@ -2806,16 +2806,16 @@ async def compose_up(compose: PodmanCompose, args):
28062806
podman_args = await container_to_args(
28072807
compose, cnt, detached=args.detach, no_deps=args.no_deps
28082808
)
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
28122812

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(
28152815
compose, cnt["name"], deps_from_container(args, cnt), ([], "start", [cnt["name"]])
28162816
)
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
28192819

28202820
if args.dry_run:
28212821
return None

0 commit comments

Comments
 (0)