From fbff315e18fb4c98d1d7a868fbcac25060b06694 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Tue, 29 Mar 2022 21:17:02 +0300 Subject: [PATCH] FIXES #464: accept -v in run --- podman_compose.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index c2a2ed3..d9b9fad 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -2127,7 +2127,7 @@ def compose_run(compose, args): container_name = container_names[0] cnt = dict(compose.container_by_name[container_name]) deps = cnt["_deps"] - if not args.no_deps: + if deps and not args.no_deps: up_args = argparse.Namespace( **dict( args.__dict__, @@ -2167,7 +2167,9 @@ def compose_run(compose, args): pass if args.volume: # TODO: handle volumes - pass + volumes = clone(cnt.get("volumes", None) or []) + volumes.extend(args.volume) + cnt["volumes"] = volumes cnt["tty"] = not args.T if args.cnt_command is not None and len(args.cnt_command) > 0: cnt["command"] = args.cnt_command