From fe344f3c3bb22f932905656f431b82d67a7a521d Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Tue, 23 Nov 2021 22:12:32 +0100 Subject: [PATCH] Reapply from master --- certbot-apache/certbot_apache/_internal/entrypoint.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/certbot-apache/certbot_apache/_internal/entrypoint.py b/certbot-apache/certbot_apache/_internal/entrypoint.py index 6452643cf..7a2034004 100644 --- a/certbot-apache/certbot_apache/_internal/entrypoint.py +++ b/certbot-apache/certbot_apache/_internal/entrypoint.py @@ -56,8 +56,7 @@ def get_configurator(): os_like = util.get_systemd_os_like() if os_like: for os_name in os_like: - if os_name in OVERRIDE_CLASSES: # pylint: disable=consider-using-get - override_class = OVERRIDE_CLASSES[os_name] + override_class = OVERRIDE_CLASSES.get(os_name) if not override_class: # No override class found, return the generic configurator override_class = configurator.ApacheConfigurator