Class: Bosh::Director::ProblemHandlers::InvalidProblem
- Defined in:
- lib/bosh/director/problem_handlers/invalid_problem.rb
Constant Summary
Constants included from CloudcheckHelper
CloudcheckHelper::DEFAULT_AGENT_TIMEOUT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(resource_id, data) ⇒ InvalidProblem
constructor
A new instance of InvalidProblem.
Methods inherited from Base
action, action_for, #apply_resolution, auto_resolution, #auto_resolution, #auto_resolve, #checkpoint, #cloud, create_by_type, create_from_model, get_auto_resolution, inherited, init_dsl_data, plan, plan_for, register_as, resolution, #resolution_plan, #resolutions
Methods included from CloudcheckHelper
#delete_vm, #delete_vm_from_cloud, #delete_vm_reference, #reboot_vm, #recreate_vm, #recreate_vm_skip_post_start
Constructor Details
#initialize(resource_id, data) ⇒ InvalidProblem
Returns a new instance of InvalidProblem.
10 11 12 13 14 15 |
# File 'lib/bosh/director/problem_handlers/invalid_problem.rb', line 10 def initialize(resource_id, data) super @resource_id = resource_id @error = data["error"] || "unknown error" @original_type = data["original_type"] || "unknown_type" end |
Instance Method Details
#description ⇒ Object
17 18 19 |
# File 'lib/bosh/director/problem_handlers/invalid_problem.rb', line 17 def description "Problem (#{@original_type} #{@resource_id}) is no longer valid: #{@error}" end |