Exception: Chef::Exceptions::CookbookVersionSelection::UnsatisfiableRunListItem
- Inherits:
-
StandardError
- Object
- StandardError
- Chef::Exceptions::CookbookVersionSelection::UnsatisfiableRunListItem
- Defined in:
- lib/chef/exceptions.rb
Overview
In run_list expansion and resolution, a constraint was unsatisfiable.
This exception may not be the complete error report. If you resolve the misconfiguration represented by this exception and re-solve, you may get another exception
Instance Attribute Summary collapse
-
#most_constrained_cookbooks ⇒ Object
readonly
Returns the value of attribute most_constrained_cookbooks.
-
#non_existent_cookbooks ⇒ Object
readonly
Returns the value of attribute non_existent_cookbooks.
-
#run_list_item ⇒ Object
readonly
Returns the value of attribute run_list_item.
Instance Method Summary collapse
-
#initialize(message, run_list_item, non_existent_cookbooks, most_constrained_cookbooks) ⇒ UnsatisfiableRunListItem
constructor
most_constrained_cookbooks: if I were to remove constraints regarding these cookbooks, I would get a solution or move on to the next error (deeper in the graph).
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(message, run_list_item, non_existent_cookbooks, most_constrained_cookbooks) ⇒ UnsatisfiableRunListItem
most_constrained_cookbooks: if I were to remove constraints regarding these cookbooks, I would get a solution or move on to the next error (deeper in the graph). An item in this list may be unsatisfiable, but when resolved may also reveal further unsatisfiable constraints; this condition would not be reported.
253 254 255 256 257 258 259 |
# File 'lib/chef/exceptions.rb', line 253 def initialize(, run_list_item, non_existent_cookbooks, most_constrained_cookbooks) super() @run_list_item = run_list_item @non_existent_cookbooks = non_existent_cookbooks @most_constrained_cookbooks = most_constrained_cookbooks end |
Instance Attribute Details
#most_constrained_cookbooks ⇒ Object (readonly)
Returns the value of attribute most_constrained_cookbooks.
245 246 247 |
# File 'lib/chef/exceptions.rb', line 245 def most_constrained_cookbooks @most_constrained_cookbooks end |
#non_existent_cookbooks ⇒ Object (readonly)
Returns the value of attribute non_existent_cookbooks.
245 246 247 |
# File 'lib/chef/exceptions.rb', line 245 def non_existent_cookbooks @non_existent_cookbooks end |
#run_list_item ⇒ Object (readonly)
Returns the value of attribute run_list_item.
244 245 246 |
# File 'lib/chef/exceptions.rb', line 244 def run_list_item @run_list_item end |
Instance Method Details
#to_json(*a) ⇒ Object
261 262 263 264 265 266 267 268 269 |
# File 'lib/chef/exceptions.rb', line 261 def to_json(*a) result = { "message" => , "unsatisfiable_run_list_item" => run_list_item, "non_existent_cookbooks" => non_existent_cookbooks, "most_constrained_cookbooks" => most_constrained_cookbooks } result.to_json(*a) end |