summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-30 19:26:49 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-30 19:26:49 +0000
commit95564f039c599415b0b3cc6f1602495007587c1b (patch)
tree83f9a8b101f808d1d899233ae5aa7ce0b457659c /src
parent4b0ffee179b1f2e0c692d0b7868059168f93cdad (diff)
downloadbcfg2-95564f039c599415b0b3cc6f1602495007587c1b.tar.gz
bcfg2-95564f039c599415b0b3cc6f1602495007587c1b.tar.bz2
bcfg2-95564f039c599415b0b3cc6f1602495007587c1b.zip
fix python2.2 incompatibility
(Logical change 1.329) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1347 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/sbin/StatReports2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/StatReports b/src/sbin/StatReports
index 60f94aeb9..f82f69a32 100644
--- a/src/sbin/StatReports
+++ b/src/sbin/StatReports
@@ -229,7 +229,7 @@ if __name__ == '__main__':
nodel.append(hostinfo)
for nod in statsdata.findall("Node"):
- if nod.get("name") == client.get("name") or "%s." % nod.get('name') in client.get('name'):
+ if client.get('name').find(nod.get('name')) == 0:
for statel in nod.findall("Statistics"):
nodel.append(statel)
nodereport.append(nodel)