aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bernard <jbernard@tuxion.com>2014-06-13 14:32:06 -0400
committerJon Bernard <jbernard@tuxion.com>2014-06-13 14:32:06 -0400
commitd8f7745bd96dd6b23e77d531e68242344fb43bfb (patch)
treedf4f78ac090acee4d4c46a51fef82daca97e3edb
parent4478ada6500b88d4c0b512998dba4a018aa04298 (diff)
downloadporterbox-d8f7745bd96dd6b23e77d531e68242344fb43bfb.zip
Display a column header before listing machines
-rwxr-xr-xporterbox3
1 files changed, 3 insertions, 0 deletions
diff --git a/porterbox b/porterbox
index f6b0edc..35026ef 100755
--- a/porterbox
+++ b/porterbox
@@ -11,6 +11,9 @@ soup = bs4.BeautifulSoup(response.text)
machine_entries = soup.find_all('tr')
+print('%-18s %-24s %s' % ("Architecture", "Hostname", "Access"))
+print('-' * 68)
+
for machine_entry in machine_entries:
machine_data = machine_entry.find_all('td')
try: