Skip to content

Commit

Permalink
Update installed_OS_is_rhel9
Browse files Browse the repository at this point in the history
To prevent false positive RHEL9 in OL9
because OL9 has redhat-release package present

Signed-off-by: Armando Acosta <[email protected]>
  • Loading branch information
mrkanon committed Aug 23, 2024
1 parent 94ae023 commit 10e7820
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shared/checks/oval/installed_OS_is_rhel9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
<criterion comment="Installed operating system is part of the unix family"
test_ref="test_rhel9_unix_family" />
<criteria operator="OR">
<criterion comment="RHEL 9 is installed" test_ref="test_rhel9" />
<criteria operator="AND" comment="RHEL 9 is installed">
<criterion comment="RHEL 9 is installed" test_ref="test_rhel9" />
<!-- This prevent false positive RHEL9 in OL9 because OL9 has redhat-release package present -->
<extend_definition comment="Installed OS is not OL9" definition_ref="installed_OS_is_ol9" negate="true"/>
</criteria>
<criteria operator="AND" comment="Red Hat Enterprise Virtualization Host is installed">
<criterion comment="Red Hat Virtualization Host (RHVH)" test_ref="test_rhvh4_version" />
<criterion comment="Red Hat Enterprise Virtualization Host is based on RHEL 9" test_ref="test_rhevh_rhel9_version" />
Expand Down

0 comments on commit 10e7820

Please sign in to comment.