From 34ea17b19e5fefa2c9b2a6db3ec28c36e0025453 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 22 Jan 2007 17:04:03 +0000 Subject: Fix empty bad clauses in bcfg2-build reports [Patch from wosc at uni-jena] (Resolves Ticket #373) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2707 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-build-reports | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbin/bcfg2-build-reports b/src/sbin/bcfg2-build-reports index 722c563c0..dafa1326d 100755 --- a/src/sbin/bcfg2-build-reports +++ b/src/sbin/bcfg2-build-reports @@ -41,7 +41,7 @@ def generatereport(rspec, nrpt): SubElement(stats,"Good") [stats.remove(item) for item in stats.findall("Bad") + stats.findall("Modified") if \ - item.getchildren() == None] + item.getchildren() == []] [stats.remove(item) for item in stats.findall("Modified") if reportmodified == 'N'] #test for staleness -if stale add Stale tag -- cgit v1.2.3-1-g7c22