summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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