Skip to content

Commit

Permalink
Update installed_OS_is_rhel8
Browse files Browse the repository at this point in the history
To prevent false positive RHEL8 in OL8
because OL8 has redhat-release package present

Signed-off-by: Armando Acosta <armando.acosta@oracle.com>
  • Loading branch information
mrkanon committed Aug 26, 2024
1 parent a91f631 commit 593fda8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shared/checks/oval/installed_OS_is_rhel8.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_rhel8_unix_family" />
<criteria operator="OR">
<criterion comment="RHEL 8 is installed" test_ref="test_rhel8" />
<criteria operator="AND" comment="RHEL 8 is installed">
<criterion comment="RHEL 8 is installed" test_ref="test_rhel8" />
<!-- This prevent false positive RHEL8 in OL8 because OL8 has redhat-release package present-->
<extend_definition comment="Installed OS is not OL8" definition_ref="installed_OS_is_ol8" 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 8" test_ref="test_rhevh_rhel8_version" />
Expand Down

0 comments on commit 593fda8

Please sign in to comment.