Skip to content

Commit

Permalink
Merge pull request #710 from greenbone/fix_red_hat_naming
Browse files Browse the repository at this point in the history
Fix: Red Hat spelling
  • Loading branch information
n-thumann authored Jun 3, 2024
2 parents ebd9bde + 91195e5 commit daa3508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/plugins/test_valid_oid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
)
Expand Down
4 changes: 2 additions & 2 deletions troubadix/plugins/valid_oid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit daa3508

Please sign in to comment.