Skip to content

Commit

Permalink
Add environment dict to lint calls (#2770)
Browse files Browse the repository at this point in the history
Expose standard MOLECULE environment variables to the lint commands to
improve processing
  • Loading branch information
greg-hellings committed Aug 11, 2020
1 parent 1de5946 commit 77024d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion molecule/command/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ def execute(self):

try:
LOG.info("Executing: %s" % cmd)
run(cmd, shell=True, universal_newlines=True, check=True)
run(
cmd,
env=self._config.env,
shell=True,
universal_newlines=True,
check=True,
)
except Exception as e:
util.sysexit_with_message("Lint failed: %s: %s" % (e, e))

Expand Down

0 comments on commit 77024d5

Please sign in to comment.