From: Peter Palfrader Date: Sat, 21 Sep 2019 22:07:20 +0000 (+0200) Subject: mxRecord is actually an array called mXRecord X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=8e4a1f6532c3108b1907558d68d6999b2d741c3a;p=mirror%2Fdsa-puppet.git mxRecord is actually an array called mXRecord --- diff --git a/modules/roles/manifests/mta.pp b/modules/roles/manifests/mta.pp index 4e672d71f..486f3e954 100644 --- a/modules/roles/manifests/mta.pp +++ b/modules/roles/manifests/mta.pp @@ -16,8 +16,8 @@ class roles::mta( } else { include exim - $mxdata = dig($deprecated::nodeinfo, 'ldap', 'mxRecord') - if $mxdata and $mxdata =~ /INCOMING-MX/ { + $mxdata = dig($deprecated::nodeinfo, 'ldap', 'mXRecord') + if $mxdata and $mxdata.any |$item| { $item =~ /INCOMING-MX/ } { $mailport = lookup('exim::mail_port') @@concat::fragment { "manualroute-to-${::fqdn}":