From: Peter Palfrader Date: Wed, 2 Mar 2011 12:05:54 +0000 (+0100) Subject: Now I cannot even get ruby syntax right X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=8bbc9419b28340d5e2e6921a69595692a90c3485;p=mirror%2Fdsa-puppet.git Now I cannot even get ruby syntax right --- diff --git a/modules/exim/templates/manualroute.erb b/modules/exim/templates/manualroute.erb index 3e51534d2..40062d8dc 100644 --- a/modules/exim/templates/manualroute.erb +++ b/modules/exim/templates/manualroute.erb @@ -19,7 +19,7 @@ end mxregex = Regexp.new('^\d+\s+(.*)\.$') allnodeinfo.keys.sort.each do |host| - next unless allnodeinfo[host['mXRecord'] + next unless allnodeinfo[host]['mXRecord'] allnodeinfo[host]['mXRecord'].each do |mx| mxmatch = mxregex.match(mx) if mxmatches.include?(mxmatch[1])