From 5a03c254cf0a7cd317c636f02a4a72e0c31c4b22 Mon Sep 17 00:00:00 2001 From: Daniel Akulenok Date: Tue, 14 May 2024 10:06:12 +0200 Subject: [PATCH] fix: Replace incorrectly used macro with proper Jinja2 filter --- templates/named.conf.options.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/named.conf.options.j2 b/templates/named.conf.options.j2 index 2c92a19..706f136 100644 --- a/templates/named.conf.options.j2 +++ b/templates/named.conf.options.j2 @@ -129,8 +129,8 @@ dnstap { {% for dns64 in item.options.dns64 if item.options.dns64 is sequence %} dns64 {{ dns64.netprefix }} { {% filter indent(bind9_config_indent, true) %} -{{ ('break-dnssec ' + dns64.break_dnssec | functions.named_boolean + ';\n') if dns64.break_dnssec is defined and dns64.break_dnssec is boolean -}} -{{ ('recursive-only ' + dns64.recursive_only | functions.named_boolean + ';\n') if dns64.recursive_only is defined and dns64.recursive_only is boolean -}} +{{ ('break-dnssec ' + functions.named_boolean(dns64.break_dnssec) + ';\n') if dns64.break_dnssec is defined and dns64.break_dnssec is boolean -}} +{{ ('recursive-only ' + functions.named_boolean(dns64.recursive_only) + ';\n') if dns64.recursive_only is defined and dns64.recursive_only is boolean -}} {{ ('suffix ' + dns64.suffix + ';\n') if dns64.suffix is defined and dns64.suffix -}} {{ ("clients {\n" + functions.simple_item_list(dns64.clients) + "};\n") if dns64.clients is defined and dns64.clients -}} {{ ("exclude {\n" + functions.simple_item_list(dns64.exclude) + "};\n") if dns64.exclude is defined and dns64.exclude -}} @@ -171,7 +171,7 @@ default-primaries {{ functions.list_address_port_key_tls(catalog_zone.default_primaries.primaries) }}} {% endif %} {{ ('zone-directory "' + catalog_zone.zone_directory + '"') if catalog_zone.zone_directory is defined and catalog_zone.zone_directory }} -{{ ('in-memory ' + (catalog_zone.in_memory | functions.named_boolean ) | string) if catalog_zone.in_memory is defined and catalog_zone.in_memory is boolean }} +{{ ('in-memory ' + (functions.named_boolean(catalog_zone.in_memory)) | string) if catalog_zone.in_memory is defined and catalog_zone.in_memory is boolean }} {{ ('min-update-interval ' + catalog_zone.min_update_interval | string) if catalog_zone.min_update_interval is defined and catalog_zone.min_update_interval}}; {% endfilter %} {% endfor %}};