From 05cb90bdfe8084208d3d36829c2196311751c44d Mon Sep 17 00:00:00 2001 From: Joey Hagedorn Date: Wed, 29 Jun 2005 15:44:58 +0000 Subject: bug fix, extra line (Logical change 1.243) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1015 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/StatReports.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/sbin/StatReports.py b/src/sbin/StatReports.py index 48252c3ed..df515a43b 100644 --- a/src/sbin/StatReports.py +++ b/src/sbin/StatReports.py @@ -63,15 +63,11 @@ def generateReport(report, delivery, deliverytype, statdata): modified = '' if deliverytype == 'nodes-digest': - for destination in delivery.findall('Destination'): - toaddr = destination.attrib['address'] - if msg != '': - reportSections.append(("Bcfg Nightly Errors", "DIRTY:\n%s\nCLEAN:\n%s\nDETAILS:\n%s"%(dirty, clean, msg))) - else: - if delivery.attrib['good'] == 'Y': - reportSections.append(("Bcfg Nightly All Machines Good", "All Machines Nomnial")) - - + if msg != '': + reportSections.append(("Bcfg Nightly Errors", "DIRTY:\n%s\nCLEAN:\n%s\nDETAILS:\n%s"%(dirty, clean, msg))) + else: + if delivery.attrib['good'] == 'Y': + reportSections.append(("Bcfg Nightly All Machines Good", "All Machines Nomnial")) if deliverytype == 'overview-stats': -- cgit v1.2.3-1-g7c22