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

Reviewed code

parent cb0d3b5b
No related branches found
No related tags found
1 merge request!143Debug paas ci
......@@ -128,21 +128,6 @@ 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("report saved")
......@@ -153,3 +138,18 @@ logging.info("showed report")
with open(summary_filename, "w") as f:
f.write(json.dumps(reports))
logging.info("end")
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)
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