diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sbin/StatReports.py | 14 |
1 files 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': |