summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-11-05 05:10:33 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-11-05 05:10:33 +0000
commitd553c8faf0621a80acbccbf84331aed7a2437ae3 (patch)
treead6b06d7facbe89e4c04b9ceb5aad252e948004b /src
parent4b866e4d510f83404425a5ffad3b6149627b273a (diff)
downloadbcfg2-d553c8faf0621a80acbccbf84331aed7a2437ae3.tar.gz
bcfg2-d553c8faf0621a80acbccbf84331aed7a2437ae3.tar.bz2
bcfg2-d553c8faf0621a80acbccbf84331aed7a2437ae3.zip
Core: Only pass copies of statistics objects to stats plugins (Reported by davidstrauss)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5529 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 7aa859143..64a01a2fd 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -2,6 +2,7 @@
__revision__ = '$Revision$'
import atexit
+import copy
import logging
import lxml.etree
import select
@@ -286,7 +287,7 @@ class Core(Component):
def process_statistics(self, client_name, statistics):
meta = self.build_metadata(client_name)
- state = statistics.find(".//Statistics")
+ state = copy.deepcopy(statistics.find(".//Statistics"))
if state.get('version') >= '2.0':
for plugin in self.statistics:
try: