Display cert not yet due for renewal message when renewing and no other action will be taken, and change cert to certificate

This commit is contained in:
Erica Portnoy 2021-05-11 15:14:05 -07:00
parent 442dd25cb3
commit 17fa7f3d37

View file

@ -295,12 +295,12 @@ def should_renew(config, lineage):
logger.debug("Auto-renewal forced with --force-renewal...")
return True
if lineage.should_autorenew():
logger.info("Cert is due for renewal, auto-renewing...")
logger.info("Certificate is due for renewal, auto-renewing...")
return True
if config.dry_run:
logger.info("Cert not due for renewal, but simulating renewal for dry run")
logger.info("Certificate not due for renewal, but simulating renewal for dry run")
return True
logger.info("Cert not yet due for renewal")
display_util.notify("Certificate not yet due for renewal")
return False