summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-07-10 14:49:10 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-07-10 14:49:10 +0000
commit84c5001dcc6f0f543e796ef3c7b4aa779c99cc6c (patch)
tree09fad696ff44c3a7c049c924e9ae8549f82e6119 /src
parent7c9205aafd495ae053b899ad900cdd40913566a2 (diff)
downloadbcfg2-84c5001dcc6f0f543e796ef3c7b4aa779c99cc6c.tar.gz
bcfg2-84c5001dcc6f0f543e796ef3c7b4aa779c99cc6c.tar.bz2
bcfg2-84c5001dcc6f0f543e796ef3c7b4aa779c99cc6c.zip
bcfg2-info: fix showclient traceback (Reported by teknix on irc)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5317 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 92bb1ed4b..ff1b42b82 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -226,6 +226,8 @@ Usage: [quit|exit]"""
numbundles = len(client_meta.bundles)
numgroups = len(client_meta.groups)
num = max((numbundles, numgroups))
+ blist = list(client_meta.bundles)
+ glist = list(client_meta.groups)
for i in range(0, num):
if i == 0:
c = client_meta.hostname
@@ -234,11 +236,11 @@ Usage: [quit|exit]"""
c = ""
p = ""
if i < numbundles:
- b = client_meta.bundles[i]
+ b = blist[i]
else:
b = ""
if i < numgroups:
- g = client_meta.groups[i]
+ g = glist[i]
else:
g = ""
data.append((c, p, g, b))