From 2af7e961846e46190562b47d7ea8dadbfa56176d Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 21 Feb 2010 03:47:26 +0000 Subject: [PATCH] we don't actually need to build an array and take it back apart Signed-off-by: Stephen Gran --- modules/named/templates/named.conf.acl.erb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 -%>; +%> }; -- 2.20.1