Skip to content

Commit

Permalink
(MODULES-1796) Fix stdlib 3.2.0 compatibility
Browse files Browse the repository at this point in the history
Stdlib 4.0.0 allows str2bool to take a bool as an argument;
unfortunately ntp still claims to work with stdlib >= 3.2.0
  • Loading branch information
hunner committed Feb 25, 2015
1 parent 4acfa3b commit 655d966
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
$disable_auth = false
$broadcastclient = false

# On virtual machines allow large clock skews.
$panic = str2bool($::is_virtual) ? {
true => false,
# On virtual machines allow large clock skews.
# TODO Change this to str2bool($::is_virtual) when stdlib dependency is >= 4.0.0
# NOTE The "x${var}" is just to avoid lint quoted variable warning.
$panic = "x${::is_virtual}" ? {
'xtrue' => false,
default => true,
}

Expand Down

0 comments on commit 655d966

Please sign in to comment.