Refactor reporting to provide instant feedback on default output

This commit is contained in:
2022-10-10 07:48:14 +10:30
parent 0566ed9878
commit 7ec233f3bb
4 changed files with 65 additions and 45 deletions

View File

@@ -34,7 +34,7 @@ def check_host_certificate_expiration(hostname, days_to_expiration, timeout=5):
hostname,
False,
expdate,
f"Certificate expires in {(expdate - curdate).days} days - expected more than {days_to_expiration}",
f"Certificate expires in {(expdate - curdate).days} days, expected more than {days_to_expiration}",
)
return CertCheckResult(
hostname,