-
-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a regression with Chef 10 in Ruby
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unfortunately this still does not work:
NoMethodError
undefined method `run_state' for #Chef::RunContext:0x000000020fa0f8
Cookbook Trace:
/var/chef/cache/cookbooks/mysql/recipes/ruby.rb:30:in `from_file'
Relevant File Content:
/var/chef/cache/cookbooks/mysql/recipes/ruby.rb:
23: node.set['build_essential']['compiletime'] = true
24: include_recipe 'build-essential::default'
25: include_recipe 'mysql::client'
26:
27: loaded_recipes = if run_context.respond_to?(:loaded_recipes)
28: run_context.loaded_recipes
29: else
30>> run_context.run_state[:seen_recipes]
31: end