We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e8127b + 6631934 commit b347cc8Copy full SHA for b347cc8
1 file changed
lib/puppet/parser/functions/validate_string.rb
@@ -13,9 +13,14 @@ module Puppet::Parser::Functions
13
14
validate_string(true)
15
validate_string([ 'some', 'array' ])
16
- $undefined = undef
17
- validate_string($undefined)
18
-
+
+ Note: validate_string(undef) will not fail in this version of the
+ functions API (incl. current and future parser). Instead, use:
19
20
+ if $var == undef {
21
+ fail('...')
22
+ }
23
24
ENDHEREDOC
25
26
unless args.length > 0 then
0 commit comments