From 95d23c3c2b1f1ca1e910f36f5b9ddcec20ad31a9 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Wed, 24 Nov 2010 10:54:27 +0100 Subject: (bind zone-master.erb) added support for string (zone_xfers) --- templates/zone-master.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -%> -- cgit v1.2.3