app/lib/actions/base.rb in foreman-tasks-0.7.7 vs app/lib/actions/base.rb in foreman-tasks-0.7.8

- old
+ new

@@ -1,9 +1,9 @@ module Actions class Base < Dynflow::Action def task - @task ||= ::ForemanTasks::Task::DynflowTask.find_by_external_id!(execution_plan_id) + @task ||= ::ForemanTasks::Task::DynflowTask.where(:external_id => execution_plan_id).first! end # This method says what data form input gets into the task details in Rest API # By default, it sends the whole input there. def task_input