]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(MODULES-905) Narrow the confinement in bool2str
authorRyan McKern <ryan.mckern@puppetlabs.com>
Thu, 15 May 2014 22:01:14 +0000 (15:01 -0700)
committerRyan McKern <ryan.mckern@puppetlabs.com>
Thu, 15 May 2014 22:01:14 +0000 (15:01 -0700)
commit93c4151edfedb28a0cafa60011c57eb6d76ca6be
tree5321e18a8badd91c72eb7f6a3b20d62cfe293e3f
parent0761fcf0433b1c73ff9925d1b8fa20a618f28875
(MODULES-905) Narrow the confinement in bool2str

Previously, bool2str() accepted a broad array of boolean values and
bare strings, without any attempt to validate that the strings in any
way resembled "true" or "false" (or any of the other values bool2num()
accepts). This commit narrows the input confinement to TrueClass and
FalseClass, which means that bool2str() will only interpolate
strict boolean values now.
lib/puppet/parser/functions/bool2str.rb