From 2870e1494190a2e14dad279bac0fcf5c005805d5 Mon Sep 17 00:00:00 2001 From: Daniel Akulenok Date: Tue, 4 Oct 2022 12:53:45 +0200 Subject: [PATCH] Make name optional --- templates/named.conf.zone.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}};