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

knife-audit cookbook, chef 11 compatibility #5

Closed
jhmartin opened this issue Apr 28, 2014 · 0 comments · Fixed by #6
Closed

knife-audit cookbook, chef 11 compatibility #5

jhmartin opened this issue Apr 28, 2014 · 0 comments · Fixed by #6

Comments

@jhmartin
Copy link
Contributor

https://wiki.opscode.com/display/chef/Breaking+Changes+in+Chef+11 states:

In Chef 10.x and lower, you could see which recipes had been evaluated by chef by looking at node.run_state[:seen_recipes]. Chef::Node was not the correct place to track this information, and the naive implementation resulted in bugs where a recipe "nginx::default" could be loaded after "nginx", even though they're the same recipe.

In the new implementation, this is tracked by Chef::RunContext

So the cookbook should get the list of recipes from:

    node.set["knife_audit"]["seen_recipes"] = run_context.loaded_recipes
jhmartin added a commit to jhmartin/knife-audit that referenced this issue Apr 28, 2014
@jbz jbz closed this as completed in #6 Apr 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant