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 %>" {
|
zone "<%= zone %>" {
|
||||||
type master;
|
type master;
|
||||||
file "/etc/bind/db.<%= zone %>";
|
file "/etc/bind/db.<%= zone %>";
|
||||||
<% if has_variable?('slaves') -%>
|
<% if not slaves.empty? -%>
|
||||||
allow-transfer {
|
allow-transfer {
|
||||||
<% slaves.each do |slave| -%>
|
<% slaves.each do |slave| -%>
|
||||||
<%= slave['ipaddr'] %>;
|
<%= slave['ipaddr'] %>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue