From bd434b8dbae632ed215614c6e684cba81f9dad75 Mon Sep 17 00:00:00 2001 From: Balazs Santa Date: Wed, 20 Nov 2024 11:39:51 +0100 Subject: [PATCH] module docker_compose_v2_run: fix env argument --- plugins/modules/docker_compose_v2_run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/modules/docker_compose_v2_run.py b/plugins/modules/docker_compose_v2_run.py index c27a85c8..6c8df8ed 100644 --- a/plugins/modules/docker_compose_v2_run.py +++ b/plugins/modules/docker_compose_v2_run.py @@ -346,6 +346,7 @@ def get_run_cmd(self, dry_run, no_start=False): args.append('--no-TTY') if self.env: for name, value in list(self.env.items()): + args.append('--env') args.append('{0}={1}'.format(name, value)) args.append('--') args.append(self.service)