summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/DBStats.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/DBStats.py b/src/lib/Server/Plugins/DBStats.py
index 3b6909eda..4a7e04db2 100644
--- a/src/lib/Server/Plugins/DBStats.py
+++ b/src/lib/Server/Plugins/DBStats.py
@@ -30,8 +30,11 @@ class DBStats(Bcfg2.Server.Plugin.Plugin,
def process_statistics(self, mdata, xdata):
newstats = xdata.find("Statistics")
newstats.set('time', time.asctime(time.localtime()))
+ # ick
+ xdata = lxml.etree.tostring(newstats)
+ ndx = lxml.etree.XML(xdata)
e = lxml.etree.Element('Node', name=mdata.hostname)
- e.append(newstats)
+ e.append(ndx)
container = lxml.etree.Element("ConfigStatistics")
container.append(e)