summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-reports
diff options
context:
space:
mode:
authorJames Yang <jjyang@mcs.anl.gov>2008-07-17 16:38:49 +0000
committerJames Yang <jjyang@mcs.anl.gov>2008-07-17 16:38:49 +0000
commit7ad4588dcabac6193f4a3eefbc3b635b34380cf6 (patch)
treeb286704c33d21b90eea17a3454124823234ba8f4 /src/sbin/bcfg2-reports
parentbfb15fea0dfd42d8f0f23a30c716c92e04169b89 (diff)
downloadbcfg2-7ad4588dcabac6193f4a3eefbc3b635b34380cf6.tar.gz
bcfg2-7ad4588dcabac6193f4a3eefbc3b635b34380cf6.tar.bz2
bcfg2-7ad4588dcabac6193f4a3eefbc3b635b34380cf6.zip
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
Diffstat (limited to 'src/sbin/bcfg2-reports')
-rwxr-xr-xsrc/sbin/bcfg2-reports13
1 files changed, 5 insertions, 8 deletions
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