From 8e4a1f6532c3108b1907558d68d6999b2d741c3a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 22 Sep 2019 00:07:20 +0200 Subject: [PATCH] mxRecord is actually an array called mXRecord --- modules/roles/manifests/mta.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}": -- 2.20.1