Skip to content

Commit d4d2081

Browse files
kajinamitekohl
authored andcommitted
Omit allow-recursion if empty
Fix the regression introduced by 04301a6 , which causes invalid allow-recursion option when dns::allow_recursion is empty.
1 parent 2edcbd3 commit d4d2081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/options.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ listen-on { <%= $dns::listen_on %>; };
3333
listen-on-v6 { <%= $dns::listen_on_v6 %>; };
3434
<% } -%>
3535

36-
<% if $dns::allow_recursion { -%>
36+
<% unless empty($dns::allow_recursion) { -%>
3737
allow-recursion { <%= join($dns::allow_recursion, '; ') %>; };
3838
<% } -%>
3939

0 commit comments

Comments
 (0)