Skip to content

Commit

Permalink
Merge pull request #155 from babiel/load-puppet
Browse files Browse the repository at this point in the history
fix "NameError: uninitialized constant Puppet::Util"
  • Loading branch information
ekohl committed Nov 6, 2023
2 parents 6378ebf + a2346e5 commit 0854df1
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 0854df1

Please sign in to comment.