Skip to content

(MODULES-4528) Use versioncmp to check Puppet version for 4.10.x compat #737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2017

Conversation

domcleal
Copy link
Contributor

Puppet.version.to_f on Puppet 4.10.0 will evaluate to 4.1, causing
test and behavioural changes when conditionals check that the version is
equal or greater than versions such as 4.3.

Version comparisons that are vulnerable to this have been changed to use
Puppet's versioncmp implementation, while most others only check for
for major version boundaries which is safe.

`Puppet.version.to_f` on Puppet 4.10.0 will evaluate to `4.1`, causing
test and behavioural changes when conditionals check that the version is
equal or greater than versions such as `4.3`.

Version comparisons that are vulnerable to this have been changed to use
Puppet's versioncmp implementation, while most others only check for
for major version boundaries which is safe.
@DavidS DavidS requested a review from wilson208 March 14, 2017 14:54
@wilson208
Copy link
Contributor

👍 LGTM, Thanks!

@wilson208 wilson208 merged commit 60e9e0b into puppetlabs:master Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants