diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-03-15 12:26:32 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-03-15 12:26:32 -0700 |
commit | 1cb075fc2bfdaf690bab9901434071b83da4d911 (patch) | |
tree | a98c1c9fc6bbc3888f18363a5c1c068740eb95c6 | |
parent | 61c8f96347ed8824792d63babb6f336ca7a4a335 (diff) | |
download | chef-1cb075fc2bfdaf690bab9901434071b83da4d911.tar.gz |
add some backcompat for chefspec
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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 # |