Report a warning if no logrotate configuration is found

Previously the text of the report would suggest a warning but report it as a suggestions. This was an inconsistency in the reporting as a warning was displayed in the report, but the summary showed

    Great, no warnings

in case no other warning was reported.
This commit is contained in:
Pascal Wittmann 2025-01-14 23:49:01 +01:00 committed by GitHub
parent 6d8a9aa3a3
commit 20434f3f24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@
else
Display --indent 2 --text "- Checking logrotate presence" --result "${STATUS_WARNING}" --color RED
LogText "Result: No logrotate configuration found"
ReportSuggestion "${TEST_NO}" "Check if log files are properly rotated"
ReportWarning "${TEST_NO}" "Check if log files are properly rotated"
fi
fi
#