summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-10-23 08:26:24 -0700
committerMarkus Roberts <Markus@reality.com>2010-10-27 14:26:55 -0700
commit31118fe85aca4ee46903b17a3eb7aee07b8c0d69 (patch)
treed696d843d4e77bbe6f01189c1c6d59ca2b8f2ef5 /lib/puppet/util/rdoc/code_objects.rb
parent65ef24e5c1c33b7d42012891d368917fd6aaf68c (diff)
downloadpuppet-31118fe85aca4ee46903b17a3eb7aee07b8c0d69.tar.gz
puppet-31118fe85aca4ee46903b17a3eb7aee07b8c0d69.tar.xz
puppet-31118fe85aca4ee46903b17a3eb7aee07b8c0d69.zip
Kludge for #5048 -- serialization compatibility with 0.25.x
In 0.25.x the type & title of a resource were wrapped in a Puppet::Resource::Reference object whereas in 2.6.x they are attributes of the resource itself without the additional indirection (see 7089446697ad550c22012bc2b5572030727d67e1). When pson serialization is used this isn’t a problem but with formats in which we just blindly emit the structure either because we have no choice (marshal) or because we just use the default (yaml) it is a compatibility-breaking change. This patch resoloves the problem by adding a dummy reference object to cause the "correct" serialization; it is intended as a stop-gap for 2.6.x and should NOT be merged into next.
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions