summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2005-06-29 15:44:58 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2005-06-29 15:44:58 +0000
commit05cb90bdfe8084208d3d36829c2196311751c44d (patch)
tree6bd85e9313a7d0aded740abb8328f72968454cbf /src
parentd58fb4ee28f5a9c2755e764c3b7548a52f3d34cc (diff)
downloadbcfg2-05cb90bdfe8084208d3d36829c2196311751c44d.tar.gz
bcfg2-05cb90bdfe8084208d3d36829c2196311751c44d.tar.bz2
bcfg2-05cb90bdfe8084208d3d36829c2196311751c44d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/sbin/StatReports.py14
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':