From 7ad4588dcabac6193f4a3eefbc3b635b34380cf6 Mon Sep 17 00:00:00 2001 From: James Yang Date: Thu, 17 Jul 2008 16:38:49 +0000 Subject: added a man page for bcfg2-reports git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4804 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-reports | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/sbin/bcfg2-reports b/src/sbin/bcfg2-reports index bd4d24bb6..67de76e7f 100755 --- a/src/sbin/bcfg2-reports +++ b/src/sbin/bcfg2-reports @@ -88,12 +88,9 @@ def print_fields(fields, cli, max_name, entrydict): print display def print_entry(item, max_name): - display = "" - display += item.name - for i in range(len(item.name), max_name): - display += " " - display += " " - display += item.kind + fmt = ("%%-%dx " % (max_name)) + fdata = [item.name, item.kind] + dispplay = fmt % tuple(fdata) print display fields = "" @@ -142,8 +139,8 @@ Options and arguments (and corresponding environment variables): current interaction of NAME -c : shows only clean hosts -d : shows only dirty hosts --e : single-host mode - shows extra entries from the - current interaciton of name +-e NAME : single-host mode - shows extra entries from the + current interaction of NAME -h : shows help and usage info about bcfg2-reports -s NAME : single-host mode - shows bad and extra entries from the current interaction of NAME -- cgit v1.2.3-1-g7c22