From abd76a1a05b9e96ac2e707c36aa0520e6bf13394 Mon Sep 17 00:00:00 2001 From: Joey Hagedorn Date: Wed, 13 Jul 2005 15:58:09 +0000 Subject: fixed a bug, if all nodes were good. fixed a debuggging message (Logical change 1.254) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1048 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/StatReports.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sbin/StatReports.py b/src/sbin/StatReports.py index df83df611..14f2329ec 100644 --- a/src/sbin/StatReports.py +++ b/src/sbin/StatReports.py @@ -104,7 +104,7 @@ def generatereport(report, delivery, deliverytype, statdata): reportsections.append(("Bcfg Nightly Errors", \ "DIRTY:\n%s\nCLEAN:\n%s\nDETAILS:\n%s" % (dirty, clean, msg))) else: - if delivery.attrib['good'] == 'Y': + if report.attrib['good'] == 'Y': reportsections.append(("Bcfg Nightly All Machines Good", "All Machines Nomnial")) @@ -141,8 +141,8 @@ def generatereport(report, delivery, deliverytype, statdata): removableones = [] - if staleones != []: - print "Pinging hosts that didn't run today. Please wait" + # if staleones != []: + # print "Pinging hosts that didn't run today. Please wait" for instance in staleones: if os.system( 'ping -c 1 ' + fqdncache[instance[0]] + ' &>/dev/null') != 0: removableones.append(instance) -- cgit v1.2.3-1-g7c22