File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def count_trivy_findings(host) -> TrivyFindings:
4444
4545def count_trivy_findings_image (image ):
4646 if not image or not image .status_trivy :
47- return TrivyFindings ( 0 , 0 , 0 )
47+ return None
4848 trivy_findings = TrivyFindings (0 , 0 , 0 )
4949 status_trivy = image .status_trivy
5050 results = status_trivy ["Results" ]
Original file line number Diff line number Diff line change 3030 {% endif %}
3131 </ td >
3232 < td >
33+ {% if image.trivy_findings %}
3334 < span class ="text-error "> {{ image.trivy_findings['high'] }}</ span > |
3435 < span class ="text-warning "> {{ image.trivy_findings['medium'] }}</ span > |
3536 < span class ="text-info "> {{ image.trivy_findings['low'] }}</ span >
37+ {% endif %}
3638 </ td >
3739 < td > {{ image.usage_count }}</ td >
3840 </ tr >
You can’t perform that action at this time.
0 commit comments