Skip to content

Commit

Permalink
Do not show OVAL details for notapplicable rules
Browse files Browse the repository at this point in the history
With this patch, we won't show OVAL details for notapplicable rules.
The reason is that if a rule is notapplicable the OVAL isn't evaluated
at all. Also, the users are interested only in the CPE OVAL.

Fixes: #241
  • Loading branch information
jan-cerny committed Aug 2, 2024
1 parent 1a18bfb commit 6707a87
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,14 @@
</tr>
{% endif %}
{% include "remedations.html" %}
{% include "oval_definition_detail.html" %}
<tr role="row">
<td colspan="2" role="cell">
{%- include "oval_graph.html" %}
</td>
</tr>
{% if rule.result != "notapplicable" %}
{% include "oval_definition_detail.html" %}
<tr role="row">
<td colspan="2" role="cell">
{%- include "oval_graph.html" %}
</td>
</tr>
{% endif %}
{% if rule.cpe_tree -%}
<tr role="row">
<th class="pf-m-fit-content" role="rowheader" scope="row"><b>CPE check:</b></th>
Expand Down

0 comments on commit 6707a87

Please sign in to comment.