Casted WWW_REDIRECT_ENABLED to bool

This commit is contained in:
2025-09-23 19:18:22 +02:00
parent 12d05ef013
commit c523d8d8d4
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ class FilterModule(object):
def filters(self):
return {'generate_all_domains': self.generate_all_domains}
def generate_all_domains(self, domains_dict, include_www=True):
def generate_all_domains(self, domains_dict, include_www:bool=True):
"""
Transform a dict of domains (values: str, list, dict) into a flat list,
optionally add 'www.' prefixes, dedupe and sort alphabetically.

View File

@@ -23,7 +23,7 @@
system_service_tpl_exec_start: >
{{ system_service_script_exec }}
--web-protocol {{ WEB_PROTOCOL }}
--expectations '{{ applications | web_health_expectations(www_enabled=WWW_REDIRECT_ENABLED, group_names=group_names) | to_json }}'
--expectations '{{ applications | web_health_expectations(www_enabled=WWW_REDIRECT_ENABLED | bool, group_names=group_names) | to_json }}'
system_service_suppress_flush: true # The healthcheck will just work after all routines passed
- include_tasks: utils/run_once.yml

View File

@@ -90,7 +90,7 @@
items2dict(key_name='source', value_name='source'),
recursive=True
)) |
generate_all_domains(WWW_REDIRECT_ENABLED)
generate_all_domains(WWW_REDIRECT_ENABLED | bool)
}}
- name: Merge networks definitions