candlepin/candlepin — pull request #5 by jbowes (2012-06-13 16:38:39+00:00)
Title: sync: keep recursed consumer json out of entitlements

When exporting entitlements, we descend into referenced objects and
export them too. Some we use, like pools. Others we do not, like
consumers.

When a newer candlepin generates an export for an older candlepin, the
newer candlepin's consumer object contains a releaseVer field that
references a object, where the old candlepin expects a string. jackson
is not able to handle this case, so the parser fails.

Since we don't need the consumer object from inside the entitlement,
simply skip serializing it.