mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-14 03:40:33 +00:00
* module docker_compose_v2_run: fix env argument
* fix missing "--env" in docker_compose_v2_exec, and added changelog fragment
* Update changelogs/fragments/992-module-docker_compose_v2_run-fix-env-argument.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit e3b36e5f0a)
Co-authored-by: Sánta Balázs Levente <99618028+SantaBalazsLevente@users.noreply.github.com>
This commit is contained in:
@@ -229,6 +229,7 @@ class ExecManager(BaseComposeManager):
|
||||
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)
|
||||
|
||||
@@ -346,6 +346,7 @@ class ExecManager(BaseComposeManager):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user