Slightly modify ldapinfo, let's see what blows up
[mirror/dsa-puppet.git] / modules / exim / templates / manualroute.erb
index 4f24170..2b84b4e 100644 (file)
@@ -20,7 +20,7 @@ end
 
 mxregex = Regexp.new('^\d+\s+(.*)\.$')
 mxinfo.keys.sort.each do |host|
-  mxinfo[host][0]['mXRecord'].each do |mx|
+  mxinfo[host]['mXRecord'].each do |mx|
     mxmatch = mxregex.match(mx)
     if mxmatches.include?(mxmatch[1])
       route = host + ":\t\t" + host