mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 00:22:04 +02:00
lint
This commit is contained in:
@@ -58,9 +58,12 @@ def post_hook(config, final=False):
|
|||||||
def renew_hook(config, domains, lineage_path):
|
def renew_hook(config, domains, lineage_path):
|
||||||
"Run post-renewal hook if defined."
|
"Run post-renewal hook if defined."
|
||||||
if config.renew_hook:
|
if config.renew_hook:
|
||||||
os.environ["RENEWED_DOMAINS"] = " ".join(domains)
|
if not config.dry_run:
|
||||||
os.environ["RENEWED_LINEAGE"] = lineage_path
|
os.environ["RENEWED_DOMAINS"] = " ".join(domains)
|
||||||
_run_hook(config.renew_hook)
|
os.environ["RENEWED_LINEAGE"] = lineage_path
|
||||||
|
_run_hook(config.renew_hook)
|
||||||
|
else:
|
||||||
|
print("Dry run: skipping renewal hook command: {0}".format(config.renew_hook))
|
||||||
|
|
||||||
def _run_hook(shell_cmd):
|
def _run_hook(shell_cmd):
|
||||||
"""Run a hook command.
|
"""Run a hook command.
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ from letsencrypt import constants
|
|||||||
|
|
||||||
from letsencrypt import crypto_util
|
from letsencrypt import crypto_util
|
||||||
from letsencrypt import errors
|
from letsencrypt import errors
|
||||||
|
from letsencrypt import hooks
|
||||||
from letsencrypt import storage
|
from letsencrypt import storage
|
||||||
from letsencrypt.plugins import disco as plugins_disco
|
from letsencrypt.plugins import disco as plugins_disco
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user