mirror of
https://github.com/containers/podman-compose.git
synced 2025-06-01 07:55:43 +02:00
Format
This commit is contained in:
parent
a3c2a4efc4
commit
5cce7ed015
@ -2761,7 +2761,7 @@ def deps_from_container(args, cnt):
|
|||||||
async def compose_up(compose: PodmanCompose, args):
|
async def compose_up(compose: PodmanCompose, args):
|
||||||
excluded = get_excluded(compose, args)
|
excluded = get_excluded(compose, args)
|
||||||
exit_code = 0
|
exit_code = 0
|
||||||
|
|
||||||
if not args.no_build:
|
if not args.no_build:
|
||||||
# `podman build` does not cache, so don't always build
|
# `podman build` does not cache, so don't always build
|
||||||
build_args = argparse.Namespace(if_not_exists=(not args.build), **args.__dict__)
|
build_args = argparse.Namespace(if_not_exists=(not args.build), **args.__dict__)
|
||||||
@ -2809,14 +2809,14 @@ async def compose_up(compose: PodmanCompose, args):
|
|||||||
subproc = await compose.podman.run([], podman_command, podman_args)
|
subproc = await compose.podman.run([], podman_command, podman_args)
|
||||||
if subproc is not None and subproc != 0:
|
if subproc is not None and subproc != 0:
|
||||||
exit_code = subproc
|
exit_code = subproc
|
||||||
|
|
||||||
if podman_command == "run" and subproc is not None:
|
if podman_command == "run" and subproc is not None:
|
||||||
container_result = await run_container(
|
container_result = await run_container(
|
||||||
compose, cnt["name"], deps_from_container(args, cnt), ([], "start", [cnt["name"]])
|
compose, cnt["name"], deps_from_container(args, cnt), ([], "start", [cnt["name"]])
|
||||||
)
|
)
|
||||||
if container_result is not None and container_result != 0:
|
if container_result is not None and container_result != 0:
|
||||||
exit_code = container_result
|
exit_code = container_result
|
||||||
|
|
||||||
if args.dry_run:
|
if args.dry_run:
|
||||||
return None
|
return None
|
||||||
if args.no_start or args.detach:
|
if args.no_start or args.detach:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user