Refactor reporting to provide instant feedback on default output
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user