We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 680d15c commit 64b2d53Copy full SHA for 64b2d53
templates/zone-master.erb
@@ -17,8 +17,8 @@ zone "<%= @name %>" IN {
17
allow-transfer { none; };
18
<% end -%>
19
<% if @is_dynamic -%>
20
- allow-update { <% if ![nil, '', :undef].include?(@allow_update) -%>key <%= Array(@allow_update).join('.; key ') -%>.;<% end
21
- -%><% if ![nil, '', :undef].include?(@allow_update_cidr) -%> <%= Array(@allow_update_cidr).join('; ') -%>;<% end -%> };
+ allow-update { <% if !@allow_update.empty? -%>key <%= Array(@allow_update).join('.; key ') -%>.;<% end
+ -%><% if !@allow_update_cidr.empty? -%> <%= Array(@allow_update_cidr).join('; ') -%>;<% end -%> };
22
23
allow-query { any; };
24
notify yes;
0 commit comments