summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reference/function.rb
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2010-07-16 10:22:27 +0200
committerMarkus Roberts <Markus@reality.com>2010-07-18 19:44:17 -0700
commitb509032e559cb26e05863b2c290a543c6fa9d779 (patch)
tree49aa9f021c3f5775fad4b4e6a9fa1095017944e5 /lib/puppet/reference/function.rb
parent8c8c1469ae9f1dd11c567d89a27be81653ca2052 (diff)
downloadpuppet-b509032e559cb26e05863b2c290a543c6fa9d779.tar.gz
puppet-b509032e559cb26e05863b2c290a543c6fa9d779.tar.xz
puppet-b509032e559cb26e05863b2c290a543c6fa9d779.zip
Fix #4238 - if should match undef as ''
The comparisons operator (and more particularly == and !=) were not treating the undef value as '', like case and selector did since #2818. This patch makes sure comparison operator uses AST leaf matching. Unfortunately, doing this introduces a behavior change compared to the previous versions: Numbers embedded in strings will now be matched as numbers in case and selector statements instead of string matching. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib/puppet/reference/function.rb')
0 files changed, 0 insertions, 0 deletions