Skip to content

Commit

Permalink
Merge pull request #1438 from puppetlabs/CAT-2238
Browse files Browse the repository at this point in the history
(CAT-2238) Update latest_template? check to compare version numbers
  • Loading branch information
danadoherty639 authored Feb 20, 2025
2 parents fc4c3db + fb4f26a commit 4a86aea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pdk/module/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def pinned_to_puppetlabs_template_tag?
private

def latest_template?
return true if /^\d+\.\d+\.\d+(?:\.\d+)?$/.match?(template_uri.uri_fragment) && Gem::Version.new(template_uri.uri_fragment) > Gem::Version.new(PDK::TEMPLATE_REF)

[PDK::TEMPLATE_REF, 'master', 'main'].include?(template_uri.uri_fragment)
end

Expand Down

0 comments on commit 4a86aea

Please sign in to comment.