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

Excluding not relevant issues

parent 2dfc7b54
No related branches found
No related tags found
1 merge request!118Debug paas ci
......@@ -56,7 +56,6 @@ class PortList:
self.delete()
def delete(self):
print("client pl", self.client)
res = self.client.delete_port_list(self.id)
status = res.xpath('@status')[0]
status_text = res.xpath('@status_text')[0]
......@@ -252,16 +251,10 @@ class Task:
for p,t,s in zip(ports, threats, severities):
print(p,s,t)
report[p] = {'severity': s, 'threat': t}
glob_severity = -1 # returned severities are null or positive
glob_threat = 'Log'
for threat,severity in zip(threats,severities):
if severity > glob_severity:
glob_severity = severity
glob_threat = threat
glob_severity = severity
report['global'] = {'threat': glob_threat, 'severity': glob_severity}
return report
rrr = res.xpath('report/report/text()')
pretty_print(rrr)
return
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