diff options
| author | Jon Bernard <jbernard@tuxion.com> | 2014-06-13 14:31:49 -0400 |
|---|---|---|
| committer | Jon Bernard <jbernard@tuxion.com> | 2014-06-13 14:31:49 -0400 |
| commit | 4478ada6500b88d4c0b512998dba4a018aa04298 (patch) | |
| tree | efb6406d1410a247b7ff3d0fa3cee5e0ce2677a0 | |
| parent | a2daf705f7c2adfe9c4f13565bee230201c4d8c9 (diff) | |
| download | porterbox-4478ada6500b88d4c0b512998dba4a018aa04298.zip | |
Include access field in machine output
| -rwxr-xr-x | porterbox | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |