bool(len([])) == bool([])

This commit is contained in:
Brad Warren 2017-01-04 12:58:59 -08:00
parent 458c7c8131
commit dae9eee7d4

View file

@ -85,7 +85,7 @@ def run_saved_post_hooks():
for cmd in post_hook.eventually:
logger.info("Running post-hook command: %s", cmd)
_run_hook(cmd)
if len(post_hook.eventually) == 0:
if not post_hook.eventually:
logger.info("No renewals attempted, so not running post-hook")
def renew_hook(config, domains, lineage_path):