app/lib/actions/proxy_action.rb in foreman-tasks-5.3.0 vs app/lib/actions/proxy_action.rb in foreman-tasks-6.0.0
- old
+ new
@@ -65,10 +65,10 @@
end
def trigger_proxy_task
suspend do |_suspended_action|
remote_task = prepare_remote_task
- remote_task.trigger(proxy_action_name, proxy_input)
+ ForemanTasks::RemoteTask.batch_trigger(remote_task.operation, [remote_task])
output[:proxy_task_id] = remote_task.remote_task_id
end
end
def trigger_remote_task