From 937c8d582cb41b245d33f7f1ef022464c070e362 Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Mon, 2 Sep 2024 20:47:20 +0200 Subject: [PATCH] fix for letsencrypt --- filter_plugins/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter_plugins/utils.py b/filter_plugins/utils.py index de6fd4b..df49330 100644 --- a/filter_plugins/utils.py +++ b/filter_plugins/utils.py @@ -49,7 +49,7 @@ def prepare_letsencrypt(cls, sites: dict, state: str, email: str = None, only_si ): try: - if not site['plain_only'] and site['ssl']['mode'] == 'letsencrypt': + if ('plain_only' not in site or not site['plain_only']) and site['ssl']['mode'] == 'letsencrypt': _name = cls.safe_key(unsafe_name) _domains = [site['domain']] _state, _email, _key_size = state, email, None