diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-10-24 19:25:45 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-10-24 19:25:45 +0000 |
commit | 46b5888728132fabacb79dc7a28a34f248526460 (patch) | |
tree | b5d8ac76bd060da2b4a13866b2fe8efd4b900998 | |
parent | 0eda10533870439315c9a749389a381558299eec (diff) | |
download | bcfg2-46b5888728132fabacb79dc7a28a34f248526460.tar.gz bcfg2-46b5888728132fabacb79dc7a28a34f248526460.tar.bz2 bcfg2-46b5888728132fabacb79dc7a28a34f248526460.zip |
Metadata: force pretty-printing of clients file (Resolves Ticket #644)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5500 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Plugins/Metadata.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index 21c69e5bd..659c5e3c3 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -478,8 +478,12 @@ class Metadata(Bcfg2.Server.Plugin.Plugin, fd = datafile.fileno() while self.locked(fd) == True: pass + for item in self.clientdata_original.getroot().iter(): + # no items have text data of any sort + item.tail = None + item.text = None datafile.write(lxml.etree.tostring(self.clientdata_original.getroot(), - pretty_print='true')) + pretty_print=True)) fcntl.lockf(fd, fcntl.LOCK_UN) datafile.close() |