From 33de782fba94ae555058a0a51ba85de9d3fead2f Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Thu, 15 Dec 2016 17:21:20 -0800 Subject: [PATCH] Make post hooks run in deterministic order --- certbot/hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot/hooks.py b/certbot/hooks.py index a5e09b585..0db4d508d 100644 --- a/certbot/hooks.py +++ b/certbot/hooks.py @@ -58,7 +58,7 @@ def post_hook(config, renew_final=False): if config.verb == "renew": if not renew_final: if config.post_hook: - post_hook.eventually[config.post_hook] = True + post_hook.eventually.append(config.post_hook) else: for cmd in post_hook.eventually: logger.info("Running post-hook command: %s", cmd) @@ -70,7 +70,7 @@ def post_hook(config, renew_final=False): logger.info("Running post-hook command: %s", config.post_hook) _run_hook(config.post_hook) -post_hook.eventually = {} +post_hook.eventually = [] def renew_hook(config, domains, lineage_path): "Run post-renewal hook if defined."