puppetlabs/puppet — pull request #1987 by apenney (2013-10-09 23:27:48+00:00)
Title: (#22818) Skip metadata that cannot be parsed.

When adding metadata.json to modules I observed that incorrect JSON can
cause Puppet to die while parsing the invalid JSON. Wrap this in a
rescue, raise a message, and return false if the parsing fails so that
Puppet continues as if the metadata doesn't exist.