summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/parseyaml.rb
AgeCommit message (Collapse)Author
2016-04-07(maint) also catch Psych::SyntaxErrorDavid Schmitt
Psych::SyntaxError is a RuntimeException. This still needs to catch that. This was uncovered by the recent move to catch StandardError rather than the catchall Exception that was here before.
2016-03-29catch StandardError rather than the gratuitous ExceptionFelix Frank
2015-09-21Fix backwards compatibility from #511Morgan Haskel
Maintain the old behavior in the case where the optional second parameter isn't passed. Also, adding arity is backwards incompatible since stdlib still supports 2.7, so remove that.
2015-08-25[MODULES-2462] Improve parseyaml functionDmitry Ilyin
* Add default value support Second argument will be returned if yaml cannot be parsed instead of false value * Update tests
2012-11-15puppet-lint cleanupJames Fryman
2011-08-05Prep for stdlib mergeKen Barber
* Renamed load_yaml & load_json to parseyaml & parsejson * Renamed is_valid_* functions and remove the 'valid_'