Skip to content

Commit

Permalink
module docker_compose_v2_run: fix env argument
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaBalazsLevente committed Nov 20, 2024
1 parent 9b2a371 commit bd434b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/modules/docker_compose_v2_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd434b8

Please sign in to comment.