diff --git a/manifests/init.pp b/manifests/init.pp index 13d52c6..b4640d1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -187,7 +187,7 @@ # Use the monit_version fact if available, else use the default for the # platform. - $monit_version_real = pick(fact('monit_version'), $monit::params::monit_version) + $monit_version_real = pick($facts['monit_version'], $monit::params::monit_version) if($start_delay and $start_delay > 0 and versioncmp($monit_version_real,'5') < 0) { fail("start_delay requires at least Monit 5.0. Detected version is <${monit_version_real}>.")