Fix bug has_variable?->empty?
This commit is contained in:
parent
62b162b571
commit
4832031823
1 changed files with 1 additions and 1 deletions
|
@ -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'] %>;
|
||||
|
|
Loading…
Add table
Reference in a new issue