-
Notifications
You must be signed in to change notification settings - Fork 423
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
NO-REF Check chef client version before calling sensitive #317
Conversation
I gotta admit this is pretty simple and clever. I'll get this set up for the next release. |
Won't comparing as a float cause problems with the minor part when a different number of minor digits is used on each side? For example, in version numbering, |
@jemc Good point!
|
@jemc I just updated it to be:
And I made the version more accurate to 11.14.2, which is the version |
@jjasghar Thanks for your quick response! We're looking forward to this fix~ : > |
Can you add a test against this also? |
@jjasghar Yep~ Just added one unit test case and verified it works~ Thanks~ |
🤘 awesome thanks @XiangYao, all we need is another +1 from someone else and then we're good to release this. |
This looks reasonable. I'm not familiar enough with Chef client internals or change history to +1, though. |
NO-REF Check chef client version before calling sensitive
This PR is aimed to fix the issue which chef-client with a version less than 11.14 complaining about method
sensitive
missing. My current project requires a chef-client version 11.12 for some reasons, and we can't depend on this rabbitmq cookbook because of the version gap in chef-client.This fix shouldn't affect any other user but make this cookbook fit into older versions of chef client. We've tested it under chef
11.12
and it works perfect!Refer to: chef/chef#1744 for more details.
Thanks!