From be9e4f5e2740d7d33496bb39bbac5c4415682fd7 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 5 Nov 2009 05:23:34 +0000 Subject: DBStats: Fix data eating / Core: revert copy change git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5530 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/DBStats.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/Server/Plugins/DBStats.py') 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) -- cgit v1.2.3-1-g7c22