summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2016-08-31 13:12:29 -0500
committerSol Jerome <sol.jerome@gmail.com>2016-08-31 13:12:29 -0500
commitd359bfdaa44078ae3040f4776c21896ff5205c12 (patch)
treee702b0fa01e9eeaabfff6f4844e52adf56d09fbc /src
parent815f6971170fc68c724f7b0fb748e3d9336b54e6 (diff)
parentbbb7c5f59e78a4de16eb4f84c421f00ccbed1c78 (diff)
downloadbcfg2-d359bfdaa44078ae3040f4776c21896ff5205c12.tar.gz
bcfg2-d359bfdaa44078ae3040f4776c21896ff5205c12.tar.bz2
bcfg2-d359bfdaa44078ae3040f4776c21896ff5205c12.zip
Merge branch 'fix/statistic-reporting' of https://github.com/AlexanderS/bcfg2
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Client/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Client/__init__.py b/src/lib/Bcfg2/Client/__init__.py
index 0ba775318..dc4dfb983 100644
--- a/src/lib/Bcfg2/Client/__init__.py
+++ b/src/lib/Bcfg2/Client/__init__.py
@@ -10,6 +10,7 @@ import fnmatch
import logging
import argparse
import tempfile
+import copy
import Bcfg2.Logger
import Bcfg2.Options
from Bcfg2.Client import XML
@@ -950,9 +951,10 @@ class Client(object):
if not states[entry]], "Bad")]:
container = XML.SubElement(stats, ename)
for item in data:
- item.set('qtext', '')
- container.append(item)
- item.text = None
+ new_item = copy.deepcopy(item)
+ new_item.set('qtext', '')
+ container.append(new_item)
+ new_item.text = None
timeinfo = XML.Element("OpStamps")
feedback.append(stats)