Merge pull request #320 from JimPanic/patch-2
Update docs of validate_string to reflect bug
This commit is contained in:
commit
b347cc83e2
1 changed files with 8 additions and 3 deletions
|
@ -13,9 +13,14 @@ module Puppet::Parser::Functions
|
|||
|
||||
validate_string(true)
|
||||
validate_string([ 'some', 'array' ])
|
||||
$undefined = undef
|
||||
validate_string($undefined)
|
||||
|
||||
|
||||
Note: validate_string(undef) will not fail in this version of the
|
||||
functions API (incl. current and future parser). Instead, use:
|
||||
|
||||
if $var == undef {
|
||||
fail('...')
|
||||
}
|
||||
|
||||
ENDHEREDOC
|
||||
|
||||
unless args.length > 0 then
|
||||
|
|
Loading…
Reference in a new issue