diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/client.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 18e0209fe7..57ef0ac4d3 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -263,7 +263,7 @@ class Chef Chef.resource_handler_map.lock! Chef.provider_handler_map.lock! - setup_run_context(run_context) + setup_run_context load_required_recipe(@rest, run_context) unless Chef::Config[:solo_legacy_mode] @@ -465,9 +465,11 @@ class Chef # @return The newly set up run context # # @api private - def setup_run_context(run_context) + def setup_run_context policy_builder.setup_run_context(specific_recipes, run_context) assert_cookbook_path_not_empty(run_context) + run_status.run_context = run_context # backcompat for chefspec + run_context end # |