summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-07-07 16:26:39 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-07-07 16:26:39 +0000
commit250c5f917d0b8153689ad4b03a8830582eb53666 (patch)
treebbe1192308acf80505424b17d70b1aac9c46da40 /src/lib
parentb33d84e0abae2878d5da3422831be0ec7ba85f6f (diff)
downloadbcfg2-250c5f917d0b8153689ad4b03a8830582eb53666.tar.gz
bcfg2-250c5f917d0b8153689ad4b03a8830582eb53666.tar.bz2
bcfg2-250c5f917d0b8153689ad4b03a8830582eb53666.zip
Add support for severity field in statistics
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1914 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Toolset.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 46bd117a9..598ec9293 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -192,6 +192,8 @@ class Toolset(object):
for fail in failures:
for field in [fail, fail[8:]]:
newent.set(field, ent.get(field))
+ if 'severity' in ent.attrib:
+ newent.set('severity', ent.get('severity'))
#if ent.tag not in ['Package', 'Service', 'SymLink', 'ConfigFile']:
# print lxml.etree.tostring(ent)
# print lxml.etree.tostring(newent)
@@ -206,6 +208,8 @@ class Toolset(object):
for fail in failures:
for field in [fail, fail[8:]]:
newent.set(field, ent.get(field))
+ if 'severity' in ent.attrib:
+ newent.set('severity', ent.get('severity'))
if self.extra_services + self.pkgwork['remove']:
extra = lxml.etree.SubElement(stats, "Extra")
[lxml.etree.SubElement(extra, "Service", name=svc, current_status='on')