Skip to content
Snippets Groups Projects
Commit a8fee7b5 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Reviewed code

parent 92733438
No related branches found
No related tags found
1 merge request!143Debug paas ci
...@@ -128,27 +128,18 @@ for host,ports in endpoints.items(): ...@@ -128,27 +128,18 @@ for host,ports in endpoints.items():
else: else:
reports[host] = {'global': {"severity": -1, "threat": f"Scan Error. task.id: {task.id}"} } reports[host] = {'global': {"severity": -1, "threat": f"Scan Error. task.id: {task.id}"} }
logging.info("report saving")
reports = process_global_reports_info(reports) reports = process_global_reports_info(reports)
logging.info("report saved")
logging.info(pretty_json(reports)) logging.info(pretty_json(reports))
logging.info("showed report")
# Write global reports on file # Write global reports on file
with open(summary_filename, "w") as f: with open(summary_filename, "w") as f:
f.write(json.dumps(reports)) f.write(json.dumps(reports))
logging.info("Tasks deletion")
for task in tasks: for task in tasks:
task.delete() task.delete()
logging.info("Targets deletion")
for target in targets: for target in targets:
target.delete() target.delete()
logging.info("ports list deletion")
for port_list in port_lists: for port_list in port_lists:
port_list.delete() port_list.delete()
\ No newline at end of file
logging.info("end")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment