summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-03-19 02:42:14 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-03-19 02:42:14 +0000
commit1a140e1fada7b7ae430dec50c7a76e5ddbc9d221 (patch)
tree06b20d5377c296f3ebb9abddbb9f3154cc013cb3
parentc6576d5e5fefdec91b031e1fd7ee0103c6c98cdc (diff)
downloadbcfg2-1a140e1fada7b7ae430dec50c7a76e5ddbc9d221.tar.gz
bcfg2-1a140e1fada7b7ae430dec50c7a76e5ddbc9d221.tar.bz2
bcfg2-1a140e1fada7b7ae430dec50c7a76e5ddbc9d221.zip
bcfg2-info: pretty print generated configurations
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5128 ce84e21b-d406-0410-9b95-82705330c041
-rwxr-xr-xsrc/sbin/bcfg2-info4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 1f5fc7913..507c9cfe5 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -103,7 +103,9 @@ Usage: [quit|exit]"""
if len(args.split()) == 2:
client, ofile = args.split()
output = open(ofile, 'w')
- data = lxml.etree.tostring(self.BuildConfiguration(client), encoding='UTF-8', xml_declaration=True)
+ data = lxml.etree.tostring(self.BuildConfiguration(client),
+ encoding='UTF-8', xml_declaration=True,
+ pretty_print=True)
output.write(data)
output.close()
else: