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

(GH-2922) Save unset environment variables #170

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

lucywyman
Copy link
Contributor

The bolt_env_wrapper script unsets several environment variables to
make Bolt execution predictable. Unsetting these variables also means
they are unset when Bolt runs Ruby tasks and scripts over the local
transport, which is incidental to Bolt being written in Ruby. The env
wrapper now saves Ruby-related environment variables to new
BOLT_ORIG_<env_var> variables, which allows Bolt to restore the
original values when running over the local transport with
bundled-ruby set to false.

The `bolt_env_wrapper` script unsets several environment variables to
make Bolt execution predictable. Unsetting these variables also means
they are unset when Bolt runs Ruby tasks and scripts over the local
transport, which is incidental to Bolt being written in Ruby. The env
wrapper now saves Ruby-related environment variables to new
`BOLT_ORIG_<env_var>` variables, which allows Bolt to restore the
original values when running over the local transport with
`bundled-ruby` set to false.
@lucywyman lucywyman marked this pull request as ready for review July 27, 2021 17:32
@lucywyman lucywyman added this to 🚧 Reviewing in Bolt Kanban via automation Jul 27, 2021
@beechtom beechtom merged commit f4d5044 into puppetlabs:main Aug 2, 2021
@beechtom beechtom removed this from 🚧 Reviewing in Bolt Kanban Aug 2, 2021
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.

None yet

2 participants