Skip to content

Commit

Permalink
Fixes #34447 - Fix batch triggering with multiple proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka authored and ezr-ondrej committed Feb 23, 2022
1 parent bda73c4 commit 275e6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/foreman_tasks/remote_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def self.batch_trigger(operation, remote_tasks)
:action_class => remote_task.proxy_action_name })
end
results = remote_tasks.first.proxy.launch_tasks(operation, input_hash)
remote_tasks.each do |remote_task|
group.each do |remote_task|
remote_task.update_from_batch_trigger results.fetch(remote_task.execution_plan_id, {}),
results.fetch('parent', {})
end
Expand Down

0 comments on commit 275e6fc

Please sign in to comment.