diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-22 17:04:03 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-22 17:04:03 +0000 |
commit | 34ea17b19e5fefa2c9b2a6db3ec28c36e0025453 (patch) | |
tree | 46c3be59550a146594e345678ce236072cb12c01 /src/sbin/bcfg2-build-reports | |
parent | 7e081f46b2ad92b01f68497cd763e7379778e566 (diff) | |
download | bcfg2-34ea17b19e5fefa2c9b2a6db3ec28c36e0025453.tar.gz bcfg2-34ea17b19e5fefa2c9b2a6db3ec28c36e0025453.tar.bz2 bcfg2-34ea17b19e5fefa2c9b2a6db3ec28c36e0025453.zip |
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
Diffstat (limited to 'src/sbin/bcfg2-build-reports')
-rwxr-xr-x | src/sbin/bcfg2-build-reports | 2 |
1 files changed, 1 insertions, 1 deletions
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 |