Skip to content
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

Fix OS fact comparison for Ubuntu 12 and 14 #375

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

dbeckham
Copy link
Contributor

This change uses versioncmp instead of an equality operator when
comparing Ubuntu OS facts for more compatibility between various facter
versions, and Ubuntu system versions.

Also, $facts['os']['release']['major'] was changed to
$facts['os']['release']['full'] to be more consistent with other
version comparisons in this module.

Fixes the issue reported in #372.

This change uses `versioncmp` instead of an equality operator when
comparing Ubuntu OS facts for more compatibility between various facter
versions, and Ubuntu system versions.

Also, `$facts['os']['release']['major']` was changed to
`$facts['os']['release']['full']` to be more consistent with other
version comparisons in this module.
@alexjfisher alexjfisher merged commit 91a42b9 into voxpupuli:master Aug 11, 2017
@alexjfisher
Copy link
Member

@dbeckham Thanks!

@bastelfreak bastelfreak added the bug Something isn't working label Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants