lib/bolt/applicator.rb in bolt-3.24.0 vs lib/bolt/applicator.rb in bolt-3.25.0

- old
+ new

@@ -278,29 +278,28 @@ result = Bolt::ApplyResult.new(batch_target, error: error.to_h) @executor.publish_event(type: :node_result, result: result) result end else - arguments = { 'catalog' => Puppet::Pops::Types::PSensitiveType::Sensitive.new(catalog), 'plugins' => Puppet::Pops::Types::PSensitiveType::Sensitive.new(plugins), 'apply_settings' => @apply_settings, '_task' => catalog_apply_task.name, '_noop' => options[:noop] } callback = proc do |event| if event[:type] == :node_result - event = event.merge(result: ApplyResult.from_task_result(event[:result])) + event = event.merge(result: ApplyResult.from_task_result(event[:result], catalog)) end @executor.publish_event(event) end # Respect the run_as default set on the executor options[:run_as] = @executor.run_as if @executor.run_as && !options.key?(:run_as) results = transport.batch_task(batch, catalog_apply_task, arguments, options, &callback) - Array(results).map { |result| ApplyResult.from_task_result(result) } + Array(results).map { |result| ApplyResult.from_task_result(result, catalog) } end end end end