From 91195e5cf4a25f35c19036773d829e7949c600db Mon Sep 17 00:00:00 2001 From: Nicolas Thumann Date: Mon, 3 Jun 2024 15:08:49 +0200 Subject: [PATCH] Fix: Red Hat spelling --- tests/plugins/test_valid_oid.py | 4 ++-- troubadix/plugins/valid_oid.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/plugins/test_valid_oid.py b/tests/plugins/test_valid_oid.py index d670c7be..2762d3d2 100644 --- a/tests/plugins/test_valid_oid.py +++ b/tests/plugins/test_valid_oid.py @@ -520,7 +520,7 @@ def test_redhat_ok(self): path = Path("some/file.nasl") content = ( ' script_oid("1.3.6.1.4.1.25623.1.1.11.2256");\n' - ' script_family("RedHat Local Security Checks");\n' + ' script_family("Red Hat Local Security Checks");\n' ) fake_context = self.create_file_plugin_context( nasl_file=path, file_content=content @@ -550,7 +550,7 @@ def test_redhat(self): self.assertEqual( ( "script_oid() is using an OID that is reserved for " - "RedHat '1.3.6.1.4.1.25623.1.1.11.2256'" + "Red Hat '1.3.6.1.4.1.25623.1.1.11.2256'" ), results[0].message, ) diff --git a/troubadix/plugins/valid_oid.py b/troubadix/plugins/valid_oid.py index 8e4b1fa9..999e4f64 100644 --- a/troubadix/plugins/valid_oid.py +++ b/troubadix/plugins/valid_oid.py @@ -265,9 +265,9 @@ def check_content( return elif vendor_number == "11": - if family != f"RedHat {family_template}": + if family != f"Red Hat {family_template}": yield LinterError( - f"script_oid() {is_using_reserved} RedHat " + f"script_oid() {is_using_reserved} Red Hat " f"'{str(oid)}'", file=nasl_file, plugin=self.name,