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

fixes version comparison bug #314

Merged
merged 1 commit into from
Dec 10, 2015
Merged

fixes version comparison bug #314

merged 1 commit into from
Dec 10, 2015

Conversation

andyregan
Copy link
Contributor

Commit 7471d87 introduced a change to use Chef DSL
if the chef-client version is greater than 11.12. However, since it compares strings
the results are unexpected (for example "11.6.2" is greater than "11.12").

This change compares Gem::Version objects instead of strings.

(Thanks Jon Lenzer :D )

Commit 7471d87 introduced a change to use Chef DSL
if the chef-client version is greater than 11.12. However, since it compares strings
the results are unexpected (for example "11.6.2" is greater than "11.12").

This change compares Gem::Version objects instead of strings.

(Thanks Jon Lenzer :D )
@mwrock
Copy link
Contributor

mwrock commented Dec 10, 2015

👍

cc @chef-cookbooks/client-windows @chef/windows-client

@jaym
Copy link
Contributor

jaym commented Dec 10, 2015

👍

mwrock added a commit that referenced this pull request Dec 10, 2015
@mwrock mwrock merged commit 17b1aaa into chef-boneyard:master Dec 10, 2015
@mwrock
Copy link
Contributor

mwrock commented Dec 10, 2015

Thanks @andyregan !

@andyregan
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants