Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #992/e3b36e5f backport][stable-3] module docker_compose_v2_run: fix env argument #994

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Nov 22, 2024

This is a backport of PR #992 as merged into main (e3b36e5).

SUMMARY

In the get_run_cmd definition, the self.env loop adds --env before every argument while iterating through.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

docker_compose_v2_run

ADDITIONAL INFORMATION

Without the additional change, it cannot take arguments as variables and fails.

failed.log
succes.log

* 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 <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit e3b36e5)
@felixfontein felixfontein merged commit 263a234 into stable-3 Nov 22, 2024
136 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-3/e3b36e5f0a12d8fe86a659f06fa035a1628b16ea/pr-992 branch November 22, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants