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

Reviewed code

parent 41b637d9
No related branches found
No related tags found
1 merge request!143Debug paas ci
......@@ -129,20 +129,13 @@ for host,ports in endpoints.items():
reports[host] = {'global': {"severity": -1, "threat": f"Scan Error. task.id: {task.id}"} }
for task in tasks:
del task
#gvm.get_client().delete_task(task.id)
"""for target in targets:
try:
del target
except Exception as e:
logging.error(f"Error during target deletion. Msg: {e.msg}")
gvm.get_client().delete_task(task.id)
for target in targets:
gvm.get_client().delete_target(target.id)
for port_list in port_lists:
try:
del port_list
except Exception as e:
logging.error(f"Error during port list deletion. Msg: {e.msg}")"""
gvm.get_client().delete_port_list(port_list.id)
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