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

Added logic accepted/know issues during oid validation

parent 3f164b24
No related branches found
No related tags found
1 merge request!147Debug paas ci
......@@ -489,10 +489,6 @@ class Task:
glob_severity = s
glob_threat = t
report['global'] = {'threat': glob_threat, 'severity': glob_severity}
logging.debug("accepted")
logging.debug(accepted_oids)
logging.debug("new")
logging.debug(new_oids)
return report, accepted_oids, new_oids
class GVMClient():
......
......@@ -154,14 +154,13 @@ logging.info(pretty_json(reports))
with open(summary_filename, "w") as f:
f.write(json.dumps(reports))
logging.debug("qwe")
logging.debug(accepted_oids)
logging.debug(new_oids)
# Writing oids details on file
if len(accepted_oids) > 1:
with open(oids_filename, "a") as f:
f.write("ACCEPTED OIDs\n")
f.writelines([msg + "\n" for msg in accepted_oids])
f.write("\n")
if len(new_oids) > 1:
with open(oids_filename, "a") as f:
f.write("NEW OIDs\n")
f.writelines([msg + "\n" for msg in new_oids])
\ No newline at end of file
with open(oids_filename, "w") as f:
f.write("ACCEPTED OIDs\n")
f.writelines([msg + "\n" for msg in accepted_oids])
f.write("\n")
f.write("NEW OIDs\n")
f.writelines([msg + "\n" for msg in new_oids])
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