mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
Set renewing: correctly for the "renew" case.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user