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.
2 parents 50cff16 + a3c9b6b commit bf7b684Copy full SHA for bf7b684
lib/rspec-puppet-facts.rb
@@ -405,7 +405,7 @@ def self.facter_version_for_puppet_version(puppet_version)
405
return Facter.version
406
end
407
408
- applicable_versions.sort { |a, b| b.first <=> a.first }.first.last
+ applicable_versions.max_by { |p, _| p }.last
409
rescue JSON::ParserError
410
warning "#{json_path} contains invalid JSON, defaulting to Facter #{Facter.version}"
411
Facter.version
0 commit comments