Merge pull request #320 from JimPanic/patch-2

Update docs of validate_string to reflect bug
This commit is contained in:
Hunter Haugen 2014-09-17 09:44:51 -07:00
commit b347cc83e2

View file

@ -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