Skip to content

Commit

Permalink
Note that also future parser does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Pánek committed Sep 16, 2014
1 parent 448e66b commit 6631934
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/puppet/parser/functions/validate_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6631934

Please sign in to comment.