fix: jinja indentation error

This commit is contained in:
s3lph 2023-07-16 23:49:33 +02:00
parent 9d7e87530d
commit 62f3233fd8

View file

@ -13,21 +13,21 @@ shutdown_timeout: {{ postfix_mtastsresolver_shutdown_timeout }}
cache:
type: "{{ postfix_mtastsresolver_cache_type }}"
options:
{% if postfix_mtastsresolver_cache_type == 'internal' -%}
{%- if postfix_mtastsresolver_cache_type == 'internal' %}
cache_size: {{ postfix_mtastsresolver_cache_internal_size }}
{% elif postfix_mtastsresolver_cache_type == 'sqlite' -%}
{%- elif postfix_mtastsresolver_cache_type == 'sqlite' %}
filename: "{{ postfix_mtastsresolver_cache_sqlite_filename }}"
threads: {{ postfix_mtastsresolver_cache_sqlite_threads }}
timeout: {{ postfix_mtastsresolver_cache_sqlite_timeout }}
{% elif postfix_mtastsresolver_cache_type == 'redis' -%}
{%- elif postfix_mtastsresolver_cache_type == 'redis' %}
{{ postfix_mtastsresolver_cache_redis_options | to_yaml(indent=2) | indent(4) }}
{% endif -%}
{%- endif %}
default_zone:
strict_testing: {{ postfix_mtastsresolver_defaultzone_stricttesting | ternary('true', 'false') }}
timeout: {{ postfix_mtastsresolver_defaultzone_timeout }}
zones:
{% for zone, options in postfix_mtastsresolver_zones.items() -%}
{%- for zone, options in postfix_mtastsresolver_zones.items() %}
{{ zone }}:
strict_testing: {{ options.strict_testing | default(postfix_mtastsresolver_defaultzone_stricttesting) | ternary('true', 'false') }}
timeout: {{ options.timeout | default(postfix_mtastsresolver_defaultzone_timeout) }}
{% endfor -%}
{%- endfor %}