bolt-modules/file/lib/puppet/functions/file/read.rb in bolt-2.15.0 vs bolt-modules/file/lib/puppet/functions/file/read.rb in bolt-2.16.0

- old
+ new

@@ -14,10 +14,12 @@ required_param 'String', :filename return_type 'String' end def read(scope, filename) + # Send Analytics Report Puppet.lookup(:bolt_executor) {}&.report_function_call(self.class.name) + found = Puppet::Parser::Files.find_file(filename, scope.compiler.environment) unless found && Puppet::FileSystem.exist?(found) raise Puppet::ParseErrorWithIssue.from_issue_and_stack( Puppet::Pops::Issues::NO_SUCH_FILE_OR_DIRECTORY, file: filename )