diff --git a/dns/templates/zone.master.erb b/dns/templates/zone.master.erb index 1c9f557..88a8c6c 100644 --- a/dns/templates/zone.master.erb +++ b/dns/templates/zone.master.erb @@ -1,7 +1,7 @@ zone "<%= zone %>" { type master; file "/etc/bind/db.<%= zone %>"; - <% if has_variable?('slaves') -%> + <% if not slaves.empty? -%> allow-transfer { <% slaves.each do |slave| -%> <%= slave['ipaddr'] %>;