summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-09-15 04:21:45 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-09-15 04:21:45 +0000
commit3e9ab7ef6327966aaf6fe3f9560620c905382c6c (patch)
treef21d0b43f22ffcb7a1ed997b2cda90a09256c38b
parent509183dfff11b1e15dac20e35876b54541a87d8d (diff)
downloadbcfg2-3e9ab7ef6327966aaf6fe3f9560620c905382c6c.tar.gz
bcfg2-3e9ab7ef6327966aaf6fe3f9560620c905382c6c.tar.bz2
bcfg2-3e9ab7ef6327966aaf6fe3f9560620c905382c6c.zip
bcfg2-info: Fix traceback when client has no bundles
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5433 ce84e21b-d406-0410-9b95-82705330c041
-rwxr-xr-xsrc/sbin/bcfg2-info3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index ea32cc175..4b26d7890 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -223,7 +223,8 @@ Usage: [quit|exit]"""
print "Groups:\t\t", list(client_meta.groups)[0]
for grp in list(client_meta.groups)[1:]:
print '\t\t%s' % grp
- print "Bundles:\t", list(client_meta.bundles)[0]
+ if client_meta.bundles:
+ print "Bundles:\t", list(client_meta.bundles)[0]
for bnd in list(client_meta.bundles)[1:]:
print '\t\t%s' % bnd
if client_meta.connectors: