Note that also future parser does not work
This commit is contained in:
parent
448e66b8bb
commit
6631934df8
1 changed files with 6 additions and 4 deletions
|
@ -14,11 +14,13 @@ module Puppet::Parser::Functions
|
|||
validate_string(true)
|
||||
validate_string([ 'some', 'array' ])
|
||||
|
||||
NOTE: undef will only fail when using the future parser (See: https://tickets.puppetlabs.com/browse/MODULES-457)
|
||||
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('...')
|
||||
}
|
||||
|
||||
$undefined = undef
|
||||
validate_string($undefined)
|
||||
|
||||
ENDHEREDOC
|
||||
|
||||
unless args.length > 0 then
|
||||
|
|
Loading…
Reference in a new issue