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

Include env variables defined in a dependency in the step itself. #4047

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/molecule/dependency/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ def execute_with_retries(self):
exception = None

try:
util.run_command(self._sh_command, debug=self._config.debug, check=True)
util.run_command(
self._sh_command,
debug=self._config.debug,
check=True,
env=self.env,
)
msg = "Dependency completed successfully."
LOG.info(msg)
return
Expand All @@ -71,7 +76,12 @@ def execute_with_retries(self):
self.SLEEP += self.BACKOFF

try:
util.run_command(self._sh_command, debug=self._config.debug, check=True)
util.run_command(
self._sh_command,
debug=self._config.debug,
check=True,
env=self.env,
)
msg = "Dependency completed successfully."
LOG.info(msg)
return
Expand Down
Loading