bolt-modules/boltlib/lib/puppet/functions/get_target.rb in bolt-2.15.0 vs bolt-modules/boltlib/lib/puppet/functions/get_target.rb in bolt-2.16.0
- old
+ new
@@ -19,9 +19,10 @@
def get_target(name)
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)
unless inventory.version > 1
raise Puppet::ParseErrorWithIssue
.from_issue_and_stack(Bolt::PAL::Issues::UNSUPPORTED_INVENTORY_VERSION, action: 'get_target')