Look for Numeric in addition to allowing number-strings
[mirror/dsa-puppet.git] / modules / exim / manifests / init.pp
index 4ff0fb1..95a24c1 100644 (file)
@@ -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' }
        }