diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-03-19 02:42:14 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-03-19 02:42:14 +0000 |
commit | 1a140e1fada7b7ae430dec50c7a76e5ddbc9d221 (patch) | |
tree | 06b20d5377c296f3ebb9abddbb9f3154cc013cb3 | |
parent | c6576d5e5fefdec91b031e1fd7ee0103c6c98cdc (diff) | |
download | bcfg2-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-x | src/sbin/bcfg2-info | 4 |
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: |