lib/foreman_tasks/dynflow/persistence.rb in foreman-tasks-0.5.5 vs lib/foreman_tasks/dynflow/persistence.rb in foreman-tasks-0.5.6

- old
+ new

@@ -25,12 +25,12 @@ task = ::ForemanTasks::Task::DynflowTask.new task.update_from_dynflow(data, false) Lock.owner!(::User.current, task.id) if ::User.current elsif data[:state] != :planning if task = ::ForemanTasks::Task::DynflowTask.find_by_external_id(execution_plan_id) - unless task.state.to_s == data[:state].to_s + unless task.state.to_s == data[:state].to_s task.update_from_dynflow(data, true) - end + end end end end end