Class Chef::Formatters::ErrorInspectors::CookbookResolveErrorInspector
In: lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb
Parent: Object

Methods

Included Modules

APIErrorFormatting

Attributes

exception  [R] 
expanded_run_list  [R] 

Public Class methods

Public Instance methods

In my tests, the error from the server is double JSON encoded, but we should not rely on this not getting fixed.

Return should be a Hash like this:

  { "non_existent_cookbooks"     => ["nope"],
    "cookbooks_with_no_versions" => [],
    "message" => "Run list contains invalid items: no such cookbook nope."}

[Validate]