diff --git a/templates/named.conf.generator.j2 b/templates/named.conf.generator.j2 index cf262c4..3c25aa9 100644 --- a/templates/named.conf.generator.j2 +++ b/templates/named.conf.generator.j2 @@ -18,8 +18,7 @@ options { {% include 'named.conf.controls.j2' %} {% endif %} {% if item.include is defined and item.include %} -{% from 'named.conf.include.j2' import include with context %} -{{ include(item.include) }} +{% include 'named.conf.include.j2' %} {% endif %} {% if item.dlz is defined and item.dlz %} {% from 'named.conf.dlz.j2' import dlz with context %} diff --git a/templates/named.conf.include.j2 b/templates/named.conf.include.j2 index c5c6f14..9652ed6 100644 --- a/templates/named.conf.include.j2 +++ b/templates/named.conf.include.j2 @@ -1,5 +1,3 @@ -{% macro include(files) %} -{% for file in files %} +{% for file in item.include %} include "{{ file }}"; {% endfor %} -{% endmacro %} \ No newline at end of file