lib/facter/facts/linux/partitions.rb in facter-4.0.36 vs lib/facter/facts/linux/partitions.rb in facter-4.0.37

- old
+ new

@@ -12,10 +12,10 @@ def partitions parts = Facter::Resolvers::Partitions.resolve(:partitions) mountpoints = Facter::Resolvers::Mountpoints.resolve(:mountpoints) return parts unless mountpoints - mountpoints.each do |mnt| + mountpoints.reverse_each do |mnt| next unless parts[mnt[:device]] parts[mnt[:device]].merge!(mount: mnt[:path]) end parts.empty? ? nil : parts