diff --git a/shared/checks/oval/installed_OS_is_rhel8.xml b/shared/checks/oval/installed_OS_is_rhel8.xml index feab963b941..d4333d716e6 100644 --- a/shared/checks/oval/installed_OS_is_rhel8.xml +++ b/shared/checks/oval/installed_OS_is_rhel8.xml @@ -15,7 +15,11 @@ - + + + + + diff --git a/shared/checks/oval/installed_OS_is_rhel9.xml b/shared/checks/oval/installed_OS_is_rhel9.xml index 25507019a42..4ca1534acc4 100644 --- a/shared/checks/oval/installed_OS_is_rhel9.xml +++ b/shared/checks/oval/installed_OS_is_rhel9.xml @@ -15,7 +15,11 @@ - + + + + + diff --git a/ssg/build_derivatives.py b/ssg/build_derivatives.py index 79fc3eb3089..e090b710637 100644 --- a/ssg/build_derivatives.py +++ b/ssg/build_derivatives.py @@ -76,7 +76,8 @@ def add_element_to(oval_root, tag_name, component_element): if xml_el is None: xml_el = ElementTree.Element("{%s}%s" % (oval_namespace, tag_name)) oval_root.append(xml_el) - xml_el.append(component_element) + if xml_el.find("%s[@id='%s']" % (component_element.tag, component_element.get("id"))) is None: + xml_el.append(component_element) def add_oval_components_to_oval_xml(oval_root, tag_name, component_dict):