summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-11-12 18:45:16 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-11-12 18:45:16 +0000
commit5afa88a7941d496733cfb0e44e0309a8c1f5160d (patch)
treef619ab41ae3c270c93a270149f8be28e3cf12463 /src/lib
parente5083a0e267e92096d2e139de8a974286d6a0cff (diff)
downloadbcfg2-5afa88a7941d496733cfb0e44e0309a8c1f5160d.tar.gz
bcfg2-5afa88a7941d496733cfb0e44e0309a8c1f5160d.tar.bz2
bcfg2-5afa88a7941d496733cfb0e44e0309a8c1f5160d.zip
explicitly call writeback
2005/11/12 12:30:53-06:00 anl.gov!desai switch to lxml (Logical change 1.357) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1485 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Statistics.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Statistics.py b/src/lib/Server/Statistics.py
index d623b1e89..5e3ef0fc8 100644
--- a/src/lib/Server/Statistics.py
+++ b/src/lib/Server/Statistics.py
@@ -1,7 +1,7 @@
'''This file manages the statistics collected by the BCFG2 Server'''
__revision__ = '$Revision: $'
-from elementtree.ElementTree import XML, SubElement, Element
+from lxml.etree import XML, SubElement, Element
from xml.parsers.expat import ExpatError
from syslog import syslog, LOG_ERR
from time import asctime, localtime, time
@@ -101,3 +101,4 @@ class Statistics(object):
# Set dirty
self.dirty = 1
+ self.WriteBack()