puppetlabs/puppet — pull request #2374 by dalen (2014-02-20 22:04:47+00:00)
Title: (maint) Only create serialization methods on objects supporting it

Without this patch to_pson was created on for example
Puppet::SSL::Certificate which doesn't actually have a to_data_hash
method causing faces to try to render them as PSON and failing, instead
of rendering them as String which works.