diff options
author | danielsdeleo <dan@getchef.com> | 2014-03-14 13:11:00 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-03-14 14:09:37 -0700 |
commit | 33b2ae7adef917ddcafb93f3bca6a28d0f750c03 (patch) | |
tree | e664df769ecce7e31824bc3db0129760749fd761 /lib/chef/run_context.rb | |
parent | aa9585f2f7d214c667fcba4cbf61e7e8114484ab (diff) | |
download | chef-33b2ae7adef917ddcafb93f3bca6a28d0f750c03.tar.gz |
Change missing dependency from hard error to warning for now.
Diffstat (limited to 'lib/chef/run_context.rb')
-rw-r--r-- | lib/chef/run_context.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb index b66e3e54c7..a102ef4692 100644 --- a/lib/chef/run_context.rb +++ b/lib/chef/run_context.rb @@ -145,7 +145,8 @@ class Chef cookbook_name, recipe_short_name = Chef::Recipe.parse_recipe_name(recipe_name) if unreachable_cookbook?(cookbook_name) # CHEF-4367 - raise(Exceptions::MissingCookbookDependency,<<-ERROR_MESSAGE) + Chef::Log.warn(<<-ERROR_MESSAGE) +MissingCookbookDependency: Recipe `#{recipe_name}` is not in the run_list, and cookbook '#{cookbook_name}' is not a dependency of any cookbook in the run_list. To load this recipe, first add a dependency on cookbook '#{cookbook_name}' in the cookbook you're |