cobbler/cobbler — pull request #135 by aronparsons (2012-04-16 21:47:10+00:00)
Title: pretty print JSON output

This patch makes the JSON output stored in /var/lib/cobbler/config/*.d/* easier to read.

My need arises from:
- deploying a new Cobbler server based on another, but modifying things such as profile metadata
- keeping objects on multiple Cobbler servers on disconnected networks in sync

It also makes storing Cobbler objects in git more useful as you can quickly diff the objects; the current on-disk format makes that pretty-much impossible without doing your own text manipulation.

I'm not sure if there is a performance hit for additional white-space in these files, but I can't imagine there is.