Skip to content

(#19713) Validate exec commands to be type String#1525

Merged
adrienthebo merged 2 commits intopuppetlabs:masterfrom
Sharpie:19713-exec-commands-must-be-strings
Mar 13, 2013
Merged

(#19713) Validate exec commands to be type String#1525
adrienthebo merged 2 commits intopuppetlabs:masterfrom
Sharpie:19713-exec-commands-must-be-strings

Conversation

@Sharpie
Copy link
Contributor

@Sharpie Sharpie commented Mar 13, 2013

The exec type calls a pile of string-specific methods, such as scan and
split, on the value of command. Validate that command is of type String
so that Puppet can fail with a helpful message if the value was passed as a
type such as Array.

Exec can't handle arrays

Sharpie added 2 commits March 13, 2013 14:58
Add tests that ensure `exec` resources raise errors if the value given for
`command` is not of type `String`.
The `exec` type calls a pile of string-specific methods, such as `scan` and
`split`, on the value of `command`. Validate that `command` is of type `String`
so that Puppet can fail with a helpful message if the value was passed as a
type such as `Array`.
adrienthebo added a commit that referenced this pull request Mar 13, 2013
…ings

(#19713) Validate exec commands to be type String
@adrienthebo adrienthebo merged commit d3cd851 into puppetlabs:master Mar 13, 2013
@adrienthebo
Copy link
Contributor

Merged into master as d3cd851.

This should be released in 3.2.0.

Thanks again for the contribution!

-Adrien

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