Set renewing: correctly for the "renew" case.

This commit is contained in:
Peter Eckersley 2017-04-05 12:40:26 -07:00
parent b614fe8491
commit 2f0ec5c388
2 changed files with 2 additions and 0 deletions

View file

@ -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()

View file

@ -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)