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

Allow passing extra environment variables to PuppetCommand.format_command #378

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Oct 18, 2024

No description provided.

@ekohl
Copy link
Member

ekohl commented Oct 18, 2024

Note in #374 I also started to add tests. Should we build on that?

@evgeni
Copy link
Member Author

evgeni commented Oct 18, 2024

Note in #374 I also started to add tests. Should we build on that?

Sounds like a plan! You want to (quickly?) finish up #374, or shall I copy over the tests here?

@ekohl
Copy link
Member

ekohl commented Oct 18, 2024

I just rebased it to make RuboCop green.

@evgeni evgeni force-pushed the extra-env branch 2 times, most recently from c89f25d to 9bdbf74 Compare October 18, 2024 12:15
[::ENV] + cmd + [:unsetenv_others => false]
[::ENV.to_h.merge(extra_env)] + cmd + [:unsetenv_others => false]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoever thought it's cool that ::ENV behaves mostly like a Hash, but is not one, needs some vacation.

@evgeni evgeni merged commit 875e2b0 into master Oct 18, 2024
7 checks passed
@ekohl ekohl deleted the extra-env branch October 18, 2024 15:48
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