bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb in bolt-1.37.0 vs bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb in bolt-1.38.0
- old
+ new
@@ -48,11 +48,11 @@
def set_agent_feature(target)
inventory.set_feature(target, 'puppet-agent')
end
# rubocop:enable Naming/AccessorMethodName
- def run_task(targets, task, args = {})
- executor.run_task(targets, task, args)
+ def run_task(targets, task, args = {}, options = {})
+ executor.run_task(targets, task, args, options)
end
# Returns true if the target has the puppet-agent feature defined, either from inventory or transport.
def agent?(target, executor, inventory)
inventory.features(target).include?('puppet-agent') ||