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

Reviewed code

parent c8af7275
No related branches found
No related tags found
1 merge request!143Debug paas ci
......@@ -128,18 +128,22 @@ for host,ports in endpoints.items():
else:
reports[host] = {'global': {"severity": -1, "threat": f"Scan Error. task.id: {task.id}"} }
logging.info("Tasks deletion")
for task in tasks:
del task
#gvm.get_client().delete_task(task.id)
logging.info("Targets deletion")
for target in targets:
del target
#gvm.get_client().delete_target(target.id)
logging.info("ports list deletion")
for port_list in port_lists:
del port_list
#gvm.get_client().delete_port_list(port_list.id)
logging.info("report saving")
reports = process_global_reports_info(reports)
logging.info(pretty_json(reports))
......
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