bolt-modules/boltlib/lib/puppet/functions/get_targets.rb in bolt-2.15.0 vs bolt-modules/boltlib/lib/puppet/functions/get_targets.rb in bolt-2.16.0

- old
+ new

@@ -25,9 +25,10 @@ def get_targets(names) inventory = Puppet.lookup(:bolt_inventory) # Bolt executor not expected when invoked from apply block executor = Puppet.lookup(:bolt_executor) { nil } + # Send Analytics Report executor&.report_function_call(self.class.name) inventory.get_targets(names) end end