HomePhorge

Kludge for #5048 -- serialization compatibility with 0.25.x
31118fe85acaUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

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.

Details

Provenance
Markus Roberts <Markus@reality.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU65ef24e5c1c3: (#4534/#4778) -- Normalize parameterized classes
Branches
Unknown
Tags
Unknown

Event Timeline

Markus Roberts <Markus@reality.com> committed rPU31118fe85aca: Kludge for #5048 -- serialization compatibility with 0.25.x (authored by Markus Roberts <Markus@reality.com>).Oct 27 2010, 11:26 PM