-
Notifications
You must be signed in to change notification settings - Fork 225
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
run_command: support array of commands #3333
Labels
Feature
New features and improvements.
Comments
alex501212
added a commit
to alex501212/bolt
that referenced
this issue
Jul 22, 2024
* **run_command: support an array of commands* ([puppetlabs#3333](puppetlabs#3333)) Added run_commands method which allows an array of commands to be passed to run_command
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use Case
Due to security concerns, the best practice for commands in Puppet DSL are now arrays: https://www.puppet.com/docs/puppet/7/types/exec.html#exec-attribute-command
The
run_command()
only supports the String datatype as input and I think it makes sense that it supports array as well.Describe the Solution You Would Like
Array support for the commands in
run_command()
Describe Alternatives You've Considered
A clear and concise description of any alternative solutions or features you've considered.
Additional Context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: