Skip to content

Commit

Permalink
Merge pull request #313 from bootc/fixes/strict_variables
Browse files Browse the repository at this point in the history
Avoid compilation failure with strict_variables=true
  • Loading branch information
dhoppe committed Oct 13, 2016
2 parents 1150a3e + 25d81d2 commit 4bd7bbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/defaults.pp
Expand Up @@ -31,7 +31,10 @@
# https://docs.puppetlabs.com/mcollective/releasenotes.html#libdirloadpath-changes-and-core-plugins
$mco_assumed_version = '2.8.5'

$_mco_version = pick_default($::mco_version, $mco_assumed_version)
$_mco_version = defined('$mco_version') ? {
true => $::mco_version,
default => $mco_assumed_version,
}
if versioncmp($_mco_version, '2.8') >= 0 {
$core_libdir = undef
} else {
Expand Down

0 comments on commit 4bd7bbe

Please sign in to comment.