demacro zone and view

This commit is contained in:
Daniel Akulenok
2024-05-14 14:36:54 +02:00
parent 73d8632c49
commit b6fa879b93
3 changed files with 5 additions and 10 deletions

View File

@@ -1,5 +1,4 @@
{% macro view(views) %}
{% for view in views if views is iterable %}
{% for view in item.view if item.view is iterable %}
view {{ view.name }} {
{% filter indent(bind9_config_indent, true) %}
{{ ('match-recursive-only ' + functions.named_boolean(view.match_recursive_only) + ';\n') if view.match_recursive_only is defined -}}
@@ -75,4 +74,4 @@ view {{ view.name }} {
{{ trust_anchors(view.trust_anchors) -}}
{% endif %}
{% endfilter %}
};{% endfor %}{% endmacro %}
};{% endfor %}