summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/zone-master.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/zone-master.erb b/templates/zone-master.erb
index d9e88fd..2ec3973 100644
--- a/templates/zone-master.erb
+++ b/templates/zone-master.erb
@@ -3,7 +3,11 @@ zone "<%=name%>" IN {
type master;
file "/etc/bind/pri/<%=name%>.conf";
<% if zone_xfers and not zone_xfers.empty? -%>
- allow-transfer { <%= zone_xfers.collect! {|i| "#{i}" }.join('; ') -%> };
+ <% if zone_xfers.is_a?(Array) -%>
+ allow-transfer { <%= zone_xfers.join('; ') -%>; };
+ <% else -%>
+ allow-transfer { <%= zone_xfers %>; };
+ <% end -%>
<% else -%>
allow-transfer { none; };
<% end -%>