aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bernard <jbernard@tuxion.com>2014-06-13 14:31:49 -0400
committerJon Bernard <jbernard@tuxion.com>2014-06-13 14:31:49 -0400
commit4478ada6500b88d4c0b512998dba4a018aa04298 (patch)
treeefb6406d1410a247b7ff3d0fa3cee5e0ce2677a0
parenta2daf705f7c2adfe9c4f13565bee230201c4d8c9 (diff)
downloadporterbox-4478ada6500b88d4c0b512998dba4a018aa04298.zip
Include access field in machine output
-rwxr-xr-xporterbox5
1 files changed, 4 insertions, 1 deletions
diff --git a/porterbox b/porterbox
index 2f62d13..f6b0edc 100755
--- a/porterbox
+++ b/porterbox
@@ -15,10 +15,13 @@ for machine_entry in machine_entries:
machine_data = machine_entry.find_all('td')
try:
purpose = machine_data[3].text.strip()
+ access = machine_data[5].text.strip()
if purpose == 'porterbox':
hostname = machine_data[0].text.strip()
architecture = machine_data[1].text.strip()
- print('%-18s %s' % (architecture, hostname))
+ if access == "":
+ access = "[unknown]"
+ print('%-18s %-24s %s' % (architecture, hostname, access))
except IndexError:
# malformed entry, skip it