{# Copyright 2022, Red Hat, Inc. #} {# SPDX-License-Identifier: LGPL-2.1-or-later #} {%- if rule.cpe_al -%} {% set platforms_dict = rule.cpe_al -%} {%- endif %} {%- if rule.cpe_oval_dict -%} {% set platforms_dict = rule.cpe_oval_dict -%} {%- endif %} {% if not platforms_dict -%}

Warning alert: There is no CPE applicability check.

{%- else -%} {% for key, platforms in platforms_dict.items() %} {% if platforms %} {% if key == 'profile_platforms' -%} CPE platform required by profile: {% elif key == 'group_platforms' %} CPE platform required by group: {% elif key == 'rule_platforms' %} CPE platform required by rule: {%- endif %} {% for platform_id, platform in platforms.items() %}
{% set result = platform.result if platform.result else platform.value -%} {% if result == 'true' -%}
{{ platform_id }} {{ platform.title }}
{% elif result == 'false' %}
{{ platform_id }} {{ platform.title }}
{% else %}
{{ platform_id }} {{ platform.title }}
{%- endif %}
{%- if rule.cpe_al -%}
{%- endif %} {%- if rule.cpe_oval_dict -%}
{%- endif %} {% endfor %} {%- endif %} {% endfor %} {%- endif %}