Method: Bolt::Transport::Orch::Connection#build_request
- Defined in:
- lib/bolt/transport/orch/connection.rb
#build_request(targets, task, arguments, description = nil) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/bolt/transport/orch/connection.rb', line 67 def build_request(targets, task, arguments, description = nil) body = { task: task.name, environment: @environment, noop: arguments['_noop'], params: arguments.reject { |k, _| k.start_with?('_') }, scope: { nodes: get_certnames(targets) } } body[:description] = description if description body[:plan_job] = @plan_job if @plan_job body end |