We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0eb4d5 commit a3c9b6bCopy full SHA for a3c9b6b
lib/rspec-puppet-facts.rb
@@ -412,7 +412,7 @@ def self.facter_version_for_puppet_version(puppet_version)
412
return Facter.version
413
end
414
415
- applicable_versions.sort { |a, b| b.first <=> a.first }.first.last
+ applicable_versions.max_by { |p, _| p }.last
416
rescue JSON::ParserError
417
warning "#{json_path} contains invalid JSON, defaulting to Facter #{Facter.version}"
418
Facter.version
0 commit comments