Skip to content

Commit

Permalink
also enable tasks switch for puppet 5.x (if puppetversion is >= 5.4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
slauger authored and bastelfreak committed Oct 5, 2019
1 parent d191774 commit 1880da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet-syntax/manifests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def check(filelist)
def validate_manifest(file)
Puppet[:parser] = 'future' if PuppetSyntax.future_parser and Puppet.version.to_i < 4
Puppet[:app_management] = true if PuppetSyntax.app_management && (Puppet::Util::Package.versioncmp(Puppet.version, '4.3.0') >= 0 && Puppet.version.to_i < 5)
Puppet[:tasks] = true if Puppet.version.to_i >= 6 and file.match(/.*plans\/.*\.pp$/)
Puppet[:tasks] = true if Puppet::Util::Package.versioncmp(Puppet.version, '5.4.0') >= 0 and file.match(/.*plans\/.*\.pp$/)
Puppet::Face[:parser, :current].validate(file)
end
end
Expand Down

0 comments on commit 1880da7

Please sign in to comment.