From: Stephen Gran Date: Sun, 21 Feb 2010 03:50:22 +0000 (+0000) Subject: right, this is an array X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a08efe46b9b44fdfeb8b1bfa59a0b06915a0feea;p=mirror%2Fdsa-puppet.git right, this is an array Signed-off-by: Stephen Gran --- diff --git a/modules/named/templates/named.conf.acl.erb b/modules/named/templates/named.conf.acl.erb index 9d13352bf..2d15be21c 100644 --- a/modules/named/templates/named.conf.acl.erb +++ b/modules/named/templates/named.conf.acl.erb @@ -8,7 +8,9 @@ acl Nagios { str = '' localinfo.keys.sort.each do |node| if localinfo[node]['nagiosmaster'] - str += "\t" + keyinfo[node][0]['ipHostNumber'] + "/32;\n" + keyinfo[node][0]['ipHostNumber'].each do |ip| + str += "\t" + ip + "/32;\n" + end end end str