diff --git a/templates/named.conf.zone.j2 b/templates/named.conf.zone.j2 index e313c31..425b3a1 100644 --- a/templates/named.conf.zone.j2 +++ b/templates/named.conf.zone.j2 @@ -29,7 +29,7 @@ update-policy { {{ policy.permission -}} {{ ' ' + policy.identity -}} {{ ' ' + policy.ruletype -}} -{{ ' ' + policy.name -}} +{{ ' ' + policy.name if policy.name is defined -}} {{ ' ' + policy.types -}}; {% endfor %} {% endfilter %}};