Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(html): fix status from HTML outputs #4206

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prowler/lib/outputs/html/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@
def fill_html(file_descriptor, finding):
try:
row_class = "p-3 mb-2 bg-success-custom"
finding_status = finding.status
finding_status = finding.status.split(".")[0]

Check warning on line 138 in prowler/lib/outputs/html/html.py

View check run for this annotation

Codecov / codecov/patch

prowler/lib/outputs/html/html.py#L138

Added line #L138 was not covered by tests
# Change the status of the finding if it's muted
if finding.muted:
finding_status = f"MUTED ({finding.status})"
finding_status = f"MUTED ({finding_status})"

Check warning on line 141 in prowler/lib/outputs/html/html.py

View check run for this annotation

Codecov / codecov/patch

prowler/lib/outputs/html/html.py#L141

Added line #L141 was not covered by tests
row_class = "table-warning"
if finding.status == "MANUAL":
row_class = "table-info"
Expand Down