🩹 — Severity of ssl-certificate-expiration’s errors is now UNKNOWN (#60)

This commit is contained in:
Luc Didry 2024-09-26 11:38:00 +02:00
parent db4f045adf
commit 0ed60508e9
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
2 changed files with 3 additions and 0 deletions

View file

@ -7,6 +7,7 @@
- 🔨 — Add a small web server to browse documentation when developing
- ✨ — Add new check type: http-to-https (#61)
- 👷 — Remove Unreleased section from CHANGELOG when publishing documentation
- 🩹 — Severity of ssl-certificate-expirations errors is now UNKNOWN (#60)
## 0.4.1

View file

@ -341,6 +341,8 @@ class SSLCertificateExpiration(BaseCheck):
@classmethod
async def finalize(cls, config, result, **context):
if result.status == Status.ERROR:
return result.status, Severity.UNKNOWN
if result.status != Status.ON_CHECK:
return result.status, Severity.WARNING