From ecd179ef5186dc5fd08c53e03c807ffdad8cc581 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 19 Mar 2017 11:43:35 +0100 Subject: [PATCH] Look for Numeric in addition to allowing number-strings foo: 587 in yaml gets us a Numeric, and regex matches only matches strings in newer puppets, so check for that and use sprintf to get us a string. --- modules/exim/manifests/init.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index 4ff0fb1e2..95a24c123 100644 --- a/modules/exim/manifests/init.pp +++ b/modules/exim/manifests/init.pp @@ -136,6 +136,7 @@ class exim { } case getfromhash($site::nodeinfo, 'mail_port') { + Numeric: { $mail_port = sprintf("%d", getfromhash($site::nodeinfo, 'mail_port')) } /^(\d+)$/: { $mail_port = $1 } default: { $mail_port = '25' } } -- 2.20.1