Skip to content

Commit

Permalink
Merge pull request #106 from alexjfisher/puppet_6_5
Browse files Browse the repository at this point in the history
Support puppet 6.5
  • Loading branch information
alexjfisher authored Jul 6, 2019
2 parents eb15922 + b517f5d commit 52cdf63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
- PUPPET_VERSION="~> 5.5.10"
- PUPPET_VERSION="~> 6.1.0"
- PUPPET_VERSION="~> 6.2.0"
- PUPPET_VERSION="~> 6.5.0"
- PUPPET_VERSION=">= 0"
- PUPPET_VERSION="git://github.com/puppetlabs/puppet.git#master"
matrix:
Expand Down
6 changes: 5 additions & 1 deletion lib/puppet-syntax/manifests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ def check(filelist)
filelist.each do |puppet_file|
Puppet::Test::TestHelper.before_each_test
begin
validate_manifest(puppet_file)
error = validate_manifest(puppet_file)
if error.is_a?(Hash) # Puppet 6.5.0 onwards
output << error.values.first unless error.empty?
end
rescue SystemExit
# Disregard exit(1) from face.
# This is how puppet < 6.5.0 `validate_manifest` worked.
rescue => error
output << error
ensure
Expand Down

0 comments on commit 52cdf63

Please sign in to comment.