Skip to content

Commit

Permalink
stable-rc: fix empty builds failures section
Browse files Browse the repository at this point in the history
Fix empty builds section like the below:
```
BUILDS

    Failures
```

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and spbnick committed Aug 9, 2024
1 parent 7c53b8b commit 31813ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kcidb/templates/stable_rc_build.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
{% if container.builds %}
{{- "\nBUILDS" }}
{% set invalid_builds =
container.builds | selectattr("valid", "false") | list %}
container.builds | selectattr("valid", "false") |
selectattr('origin', 'in', stable_rc_macros.selected_origins) | list %}
{% set invalid_build_count = invalid_builds | length %}
{% if invalid_builds %}
{{- "\n Failures" }}
Expand Down

0 comments on commit 31813ad

Please sign in to comment.