bolt-modules/boltlib/lib/puppet/functions/run_command.rb in bolt-2.32.0 vs bolt-modules/boltlib/lib/puppet/functions/run_command.rb in bolt-2.33.1
- old
+ new
@@ -67,10 +67,10 @@
if targets.empty?
call_function('debug', "Simulating run_command('#{command}') - no targets given - no action taken")
r = Bolt::ResultSet.new([])
else
- r = executor.run_command(targets, command, options)
+ r = executor.run_command(targets, command, options, Puppet::Pops::PuppetStack.top_of_stack)
end
if !r.ok && !options[:catch_errors]
raise Bolt::RunFailure.new(r, 'run_command', command)
end