Skip to content

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

Merged
wilson208 merged 1 commit intopuppetlabs:masterfrom
domcleal:versioncmp
Mar 16, 2017
Merged

(MODULES-4528) Use versioncmp to check Puppet version for 4.10.x compat#737
wilson208 merged 1 commit intopuppetlabs:masterfrom
domcleal:versioncmp

Conversation

@domcleal
Copy link
Copy Markdown
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
Copy Markdown
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