diff options
Diffstat (limited to 'src/lib/Server')
-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() |