From: Stephen Gran Date: Sun, 21 Feb 2010 03:47:26 +0000 (+0000) Subject: we don't actually need to build an array and take it back apart X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=2af7e961846e46190562b47d7ea8dadbfa56176d;p=mirror%2Fdsa-puppet.git we don't actually need to build an array and take it back apart Signed-off-by: Stephen Gran --- diff --git a/modules/named/templates/named.conf.acl.erb b/modules/named/templates/named.conf.acl.erb index 83b945d00..9d13352bf 100644 --- a/modules/named/templates/named.conf.acl.erb +++ b/modules/named/templates/named.conf.acl.erb @@ -5,18 +5,14 @@ acl Nagios { <%= - nagii = [] + str = '' localinfo.keys.sort.each do |node| if localinfo[node]['nagiosmaster'] - nagii << keyinfo[node][0]['ipHostNumber'] + str += "\t" + keyinfo[node][0]['ipHostNumber'] + "/32;\n" end end - str = '' - nagii.each do |nag| - str += "\t" + nag + "/32;\n" - end str -%>; +%> };