summaryrefslogtreecommitdiffstats
path: root/cobbler/action_status.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-21 18:25:43 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-21 18:25:43 -0400
commit4edf5d24889cca32fda7bf37d1a54ea6214de101 (patch)
tree492e01ef5eb3dc441df1e62b2634149d9da81081 /cobbler/action_status.py
parent6b8331279384f6376269ded47b88b6fd64cfa288 (diff)
downloadthird_party-cobbler-4edf5d24889cca32fda7bf37d1a54ea6214de101.tar.gz
third_party-cobbler-4edf5d24889cca32fda7bf37d1a54ea6214de101.tar.xz
third_party-cobbler-4edf5d24889cca32fda7bf37d1a54ea6214de101.zip
Fix status printing
Diffstat (limited to 'cobbler/action_status.py')
-rw-r--r--cobbler/action_status.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/cobbler/action_status.py b/cobbler/action_status.py
index 69ba734..b1bca72 100644
--- a/cobbler/action_status.py
+++ b/cobbler/action_status.py
@@ -113,14 +113,14 @@ class BootStatusReport:
time_collisions = 0
#header = ("Address", "State", "Started", "Last Request", "Seconds", "Log Entries")
- print _("%-20(address)s | %-15(state)s | %-25(started)s | %-25(lastreq)s | %-10(seconds)s | %-6(logentries)s") % {
- "address" : _("Address"),
- "state" : _("State"),
- "lastreq" : _("Last Request"),
- "started" : _("Started"),
- "seconds" : _("Seconds"),
- "logentries" : _("Log Entries"),
- }
+ print _("%-20s | %-15s | %-25s | %-25s | %-10s | %-6s") % (
+ _("Address"),
+ _("State"),
+ _("Last Request"),
+ _("Started"),
+ _("Seconds"),
+ _("Log Entries")
+ )
for ip in ips:
@@ -214,13 +214,13 @@ class BootStatusReport:
elapsed_time = "?"
# print the status line for this IP address
- print "%-20(ip)s | %-15(state)s | %-25(start)s | %-25(last)s | %-10(elapsed)s | %-6(fcount)s" % {
- "ip" : ip,
- "state" : install_state,
- "start" : display_start,
- "last" : display_last,
- "elapsed" : elapsed_time,
- "fcount" : fcount
- }
+ print "%-20s | %-15s | %-25s | %-25s | %-10s | %-6s" % (
+ ip,
+ install_state,
+ display_start,
+ display_last,
+ elapsed_time,
+ fcount
+ )