Skip to content

Commit

Permalink
fix picking fact monitversion
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Feb 13, 2024
1 parent 75611ea commit cc19b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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}>.")
Expand Down

0 comments on commit cc19b04

Please sign in to comment.