add awx 17 example

This commit is contained in:
Muayyad alsadi
2021-12-21 22:54:27 +02:00
parent d1768c1d9d
commit 2803046ac3
12 changed files with 608 additions and 1 deletions

View File

@ -1485,7 +1485,7 @@ def compose_run(compose, args):
create_pods(compose, args)
container_names=compose.container_names_by_service[args.service]
container_name=container_names[0]
cnt = compose.container_by_name[container_name]
cnt = dict(compose.container_by_name[container_name])
deps = cnt["_deps"]
if not args.no_deps:
up_args = argparse.Namespace(**dict(args.__dict__,
@ -1516,6 +1516,9 @@ def compose_run(compose, args):
cnt['tty']=False if args.T else True
if args.cnt_command is not None and len(args.cnt_command) > 0:
cnt['command']=args.cnt_command
# can't restart and --rm
if args.rm and 'restart' in cnt:
del cnt['restart']
# run podman
podman_args = container_to_args(compose, cnt, args.detach)
if not args.detach: