Skip to content

Commit 0e077a3

Browse files
committed
(CONT-812) Remove Puppet 5 check for plans
1 parent 5b44c36 commit 0e077a3

File tree

1 file changed

+0
-4
lines changed
  • lib/puppet-strings/yard/parsers/puppet

1 file changed

+0
-4
lines changed

lib/puppet-strings/yard/parsers/puppet/parser.rb

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ def initialize(source, filename) # rubocop:disable Lint/MissingSuper
2222
# @return [void]
2323
def parse
2424
begin
25-
if @file.to_s.match?(%r{^plans|/plans/}) && Puppet::Util::Package.versioncmp(Puppet.version, '5.0.0').negative?
26-
log.warn "Skipping #{@file}: Puppet Plans require Puppet 5 or greater."
27-
return
28-
end
2925
Puppet[:tasks] = true if Puppet.settings.include?(:tasks)
3026
@statements ||= (@visitor.visit(::Puppet::Pops::Parser::Parser.new.parse_string(source)) || []).compact
3127
rescue ::Puppet::ParseError => e

0 commit comments

Comments
 (0)