show_ports.py: showing errors

This commit is contained in:
Logan Lipke
2020-04-10 11:44:09 -07:00
parent f189fe5f13
commit 8a4d5189fd

View File

@@ -18,11 +18,12 @@ def main():
timeout = 5 # seconds timeout = 5 # seconds
lf_r = LFRequest.LFRequest(url) lf_r = LFRequest.LFRequest(url)
json_response = lf_r.getAsJson() json_response = lf_r.getAsJson(True)
#print(json_response)
j_printer = pprint.PrettyPrinter(indent=2) j_printer = pprint.PrettyPrinter(indent=2)
for record in json_response['interfaces']: j_printer.pprint(json_response)
j_printer.pprint(record)
#for record in json_response['interfaces']:
#j_printer.pprint(record)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if __name__ == "__main__": if __name__ == "__main__":