Skip to content

Commit

Permalink
Ensure validate_cmd is a string and fail explicitly otherwise.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkeyes committed Nov 16, 2014
1 parent 5619355 commit 09a01d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
validate_bool($replace)
validate_re($order, '^alpha$|^numeric$')
validate_bool($ensure_newline)
if $validate_cmd and ! is_string($validate_cmd) {
fail('$validate_cmd must be a string')
}
if $gnu {
warning('The $gnu parameter to concat is deprecated and has no effect')
}
Expand Down

0 comments on commit 09a01d8

Please sign in to comment.