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

Excluding not relevant issues

parent db2ee2e1
No related branches found
No related tags found
1 merge request!118Debug paas ci
......@@ -250,11 +250,12 @@ class Task:
oids = res.xpath('report/report/results/result/nvt/@oid')
sevs = res.xpath('report/report/results/result/nvt/severities/@score')
treats = res.xpath('report/report/results/result/threat/text()')
for oid, sev, treat in zip(oids, sevs, treats):
ports = res.xpath('report/report/results/result/port/text()')
for oid, sev, treat, port in zip(oids, sevs, treats, ports):
if float(sev) >= 0 and oid in issue_to_remove:
print(f"{oid}\t{sev}\t{treat}\tREMOVED")
print(f"{oid}\t{sev}\t{treat}\t{port}\tREMOVED")
else:
print(f"{oid}\t{sev}\t{treat}")
print(f"{oid}\t{sev}\t{treat}\t{port}")
class GVMClient():
"""
......
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