summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-09-09 20:08:18 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-09-09 20:08:18 +0000
commit7f0a758f20a599ca9a7f277d379de033da5738bf (patch)
tree3c2ceb5ee5698acfbe47ce1e00b44e78d44ecb06 /src
parent4c1fefb5b1b63554a40cd0f3714a7f8463d51e68 (diff)
downloadbcfg2-7f0a758f20a599ca9a7f277d379de033da5738bf.tar.gz
bcfg2-7f0a758f20a599ca9a7f277d379de033da5738bf.tar.bz2
bcfg2-7f0a758f20a599ca9a7f277d379de033da5738bf.zip
bcfg2-info: improve showclient display
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5421 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 57939177b..ea32cc175 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -220,14 +220,19 @@ Usage: [quit|exit]"""
continue
print "Hostname:\t", client_meta.hostname
print "Profile:\t", client_meta.profile
- print "Groups:\t\t", ",".join(client_meta.groups)
- print "Bundles:\t", ",".join(client_meta.bundles)
+ 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]
+ for bnd in list(client_meta.bundles)[1:]:
+ print '\t\t%s' % bnd
if client_meta.connectors:
print "Connector data"
print "=" * 80
for conn in client_meta.connectors:
- print "%s:\t" % (conn), getattr(client_meta, conn)
- print "=" * 80
+ if getattr(client_meta, conn):
+ print "%s:\t" % (conn), getattr(client_meta, conn)
+ print "=" * 80
def do_mappings(self, args):
'''print out mapping info'''