From a2346e54cdfb517a5f519e180c70b9dafd89a711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ga=C3=9F?= Date: Tue, 10 Oct 2023 11:23:22 +0200 Subject: [PATCH] fix "NameError: uninitialized constant Puppet::Util" when running syntax:templates when running syntax:templates on its own, not everything required was apparently loaded --- lib/puppet-syntax/templates.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/puppet-syntax/templates.rb b/lib/puppet-syntax/templates.rb index a12fbee..faafebc 100644 --- a/lib/puppet-syntax/templates.rb +++ b/lib/puppet-syntax/templates.rb @@ -29,8 +29,7 @@ def check(filelist) end def validate_epp(filename) - require 'puppet/error' - require 'puppet/pops' + require 'puppet' result = { warnings: [], errors: [] } formatter = Puppet::Pops::Validation::DiagnosticFormatterPuppetStyle.new evaluating_parser = Puppet::Pops::Parser::EvaluatingParser::EvaluatingEppParser.new