Fix bug has_variable?->empty?

This commit is contained in:
aes_ng 2012-01-19 16:10:31 +02:00 committed by Timo Mkinen
parent 62b162b571
commit 4832031823

View file

@ -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'] %>;