Skip to content

Commit

Permalink
fix "NameError: uninitialized constant Puppet::Util" when running syn…
Browse files Browse the repository at this point in the history
…tax:templates

when running syntax:templates on its own, not everything required
was apparently loaded
  • Loading branch information
mxey committed Oct 10, 2023
1 parent 4b60695 commit a2346e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/puppet-syntax/templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2346e5

Please sign in to comment.