mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 18:56:55 +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):
|
def renew(config, unused_plugins):
|
||||||
"""Renew previously-obtained certificates."""
|
"""Renew previously-obtained certificates."""
|
||||||
try:
|
try:
|
||||||
|
config.renewing = "yes"
|
||||||
renewal.handle_renewal_request(config)
|
renewal.handle_renewal_request(config)
|
||||||
finally:
|
finally:
|
||||||
hooks.run_saved_post_hooks()
|
hooks.run_saved_post_hooks()
|
||||||
|
|||||||
@@ -393,6 +393,7 @@ def handle_renewal_request(config):
|
|||||||
# elements from within the renewal configuration file).
|
# elements from within the renewal configuration file).
|
||||||
try:
|
try:
|
||||||
renewal_candidate = _reconstitute(lineage_config, renewal_file)
|
renewal_candidate = _reconstitute(lineage_config, renewal_file)
|
||||||
|
renewal_candidate.renewing = "yes"
|
||||||
except Exception as e: # pylint: disable=broad-except
|
except Exception as e: # pylint: disable=broad-except
|
||||||
logger.warning("Renewal configuration file %s produced an "
|
logger.warning("Renewal configuration file %s produced an "
|
||||||
"unexpected error: %s. Skipping.", renewal_file, e)
|
"unexpected error: %s. Skipping.", renewal_file, e)
|
||||||
|
|||||||
Reference in New Issue
Block a user