Updating for Chef / ChefSpec Deprecation Warnings #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been updating our company cookbooks to use ChefSpec / Test Kitchen and ran into some weird output that I've tracked down to Chef complaining the use of deprecated stuff in this cookbook. Specifically, I'm getting this:
The 'platform' output is the node attribute being accessed in method format and that is output by Chef (which is REALLY annoying because I can't stop it from happening).
I can't do much about the Chef side, but figured I could help here, so I posted some updates to fix that deprecation warning as well as fixing the unit tests in this cookbook (they didn't run locally for me.)
Hopefully this helps out.