Skip to content

Commit

Permalink
Fix exception name
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Nov 11, 2024
1 parent e4a90cc commit 226e989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.trigger_task(async, action, *args, &block)
finished.wait(timeout)
task = ForemanTasks::Task::DynflowTask.where(:external_id => id).first
if task.nil? || (!task.paused? && task.pending?)
raise TimeoutError, "The time waiting for task #{task.try(:id)} to finish exceeded the 'foreman_tasks_sync_task_timeout' (#{timeout}s)"
raise Timeout::Error, "The time waiting for task #{task.try(:id)} to finish exceeded the 'foreman_tasks_sync_task_timeout' (#{timeout}s)"
end
end
task || ForemanTasks::Task::DynflowTask.where(:external_id => id).first!
Expand Down

0 comments on commit 226e989

Please # to comment.