]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
datamodel/templates: fix tags in /local-data/rules/*/records docs-develop-loca-69s24w/deployments/6477
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 27 Mar 2025 10:42:11 +0000 (11:42 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 27 Mar 2025 10:46:21 +0000 (11:46 +0100)
It was generating 0 silently, which is as if not specifying any tag-list.

NEWS
python/knot_resolver/datamodel/templates/macros/local_data_macros.lua.j2

diff --git a/NEWS b/NEWS
index 614177308c8e151252da4bc9105550f0b100bff7..13fd8f4285ce7f27259a572f3f84230049674866 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ Knot Resolver 6.0.12 (2025-0m-dd)
 Bugfixes
 --------
 - /management/unix-socket: revert to absolute path (#926, !1664)
+- fix `tags` when used in /local-data/rules/*/records (!1670)
 
 
 Knot Resolver 6.0.11 (2025-02-26)
index 0898571ca17c4cea92b9238868e08cf003fb4a6d..58861f93fd5460be23d700d5d45931af17e59be0 100644 (file)
@@ -95,7 +95,7 @@ assert(C.kr_rule_local_subtree(todname('{{ name }}'),
 {{ kr_rule_local_hosts(file, nodata if item.nodata is none else item.nodata, item.ttl or ttl, item.tags) }}
 {% endfor %}
 {% elif item.records %}
-{{ local_data_records(item.records, false, nodata if item.nodata is none else item.nodata, item.ttl or ttl, tags) }}
+{{ local_data_records(item.records, false, nodata if item.nodata is none else item.nodata, item.ttl or ttl, item.tags) }}
 {% endif %}
 {% endfor %}
 {%- endmacro %}