mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
Set renewing: correctly for the "renew" case.
This commit is contained in:
parent
b614fe8491
commit
2f0ec5c388
2 changed files with 2 additions and 0 deletions
|
|
@ -696,6 +696,7 @@ def certonly(config, plugins):
|
|||
def renew(config, unused_plugins):
|
||||
"""Renew previously-obtained certificates."""
|
||||
try:
|
||||
config.renewing = "yes"
|
||||
renewal.handle_renewal_request(config)
|
||||
finally:
|
||||
hooks.run_saved_post_hooks()
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@ def handle_renewal_request(config):
|
|||
# elements from within the renewal configuration file).
|
||||
try:
|
||||
renewal_candidate = _reconstitute(lineage_config, renewal_file)
|
||||
renewal_candidate.renewing = "yes"
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
logger.warning("Renewal configuration file %s produced an "
|
||||
"unexpected error: %s. Skipping.", renewal_file, e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue