]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
accept any case of boolean strings
authorCorey Osman <corey@logicminds.biz>
Thu, 3 Sep 2015 17:31:51 +0000 (10:31 -0700)
committerCorey Osman <corey@logicminds.biz>
Fri, 4 Sep 2015 15:09:26 +0000 (08:09 -0700)
commitf2f2db4795fc0e3b9387e1e6c003e8e75efde903
tree683943b340206622911d3108f50b1e7f25cc4035
parent6a1afae97e0451590c833acdd79fd730f49137b9
accept any case of boolean strings

  * previously the str2bool function did not accept 'TRUE' as a bool
    type.  This causes the function to now accept TRUE, FALSE strings
    as a boolean type in order to be converted to a proper boolean.
  * This would also cause Y,N, YES, NO to be accepted as boolean types
    as well.
README.markdown
lib/puppet/parser/functions/str2bool.rb
spec/functions/str2bool_spec.rb