From 250c5f917d0b8153689ad4b03a8830582eb53666 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 7 Jul 2006 16:26:39 +0000 Subject: 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 --- src/lib/Client/Toolset.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib') 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') -- cgit v1.2.3-1-g7c22