lib/custom_facts/util/fact.rb in facter-4.0.21 vs lib/custom_facts/util/fact.rb in facter-4.0.22
- old
+ new
@@ -159,10 +159,10 @@
def find_suitable_resolutions(resolutions)
resolutions.find_all(&:suitable?)
end
def sort_by_weight(resolutions)
- resolutions.sort { |a, b| b.weight <=> a.weight }
+ resolutions.sort { |a, b| b <=> a }
end
def find_first_real_value(resolutions)
resolutions.each do |resolve|
begin