bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb in bolt-0.24.0 vs bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb in bolt-0.25.0
- old
+ new
@@ -62,10 +62,11 @@
search_dirs << mod.pluginfacts if mod.pluginfacts?
search_dirs
end
task = applicator.custom_facts_task
- results = executor.run_task(targets, task, 'plugins' => plugins)
+ arguments = { 'plugins' => Puppet::Pops::Types::PSensitiveType::Sensitive.new(plugins) }
+ results = executor.run_task(targets, task, arguments)
raise Bolt::RunFailure.new(results, 'run_task', task.name) unless results.ok?
results.each do |result|
inventory.add_facts(result.target, result.value)
end