From e59e599aa537e41377d30a931ea48b3d426d507d Mon Sep 17 00:00:00 2001 From: Gioacchino Vino <gioacchino.vino@infn.it> Date: Mon, 29 Apr 2024 15:06:06 +0200 Subject: [PATCH] Added logic accepted/know issues during oid validation --- files/gvm_library.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/gvm_library.py b/files/gvm_library.py index f86408b..ba651ca 100644 --- a/files/gvm_library.py +++ b/files/gvm_library.py @@ -466,13 +466,13 @@ class Task: msg = f"Detected oid: {o}, severity: {s}, threat: {t} and port: {p}" if s >= 4: # If severity is not negligible if o in accepted_issues: - msg += "\t=> ACCEPTED" + msg += " => ACCEPTED" else: if o in known_issues: - msg += "\t=> DROPPED (not accepted but known)" + msg += " => DROPPED (not accepted but known)" continue else: - msg += "\t=> NEW (not accepted and not known)" + msg += " => NEW (not accepted and not known)" logging.debug(msg) if p in report: if s > report[p]['severity']: -- GitLab