bin/check-fstab-mounts.rb in sensu-plugins-disk-checks-1.1.3 vs bin/check-fstab-mounts.rb in sensu-plugins-disk-checks-2.0.0

- old
+ new

@@ -61,10 +61,10 @@ next if fields[1] == 'none' || (fields[3].include? 'noauto') next if config[:fstypes] && !config[:fstypes].include?(fields[2]) if fields[2] != 'swap' @missing_mounts << fields[1] if @mtab.select { |m| m.split(/\s+/)[1] == fields[1] }.empty? else - @missing_mounts << fields[1] if @swap_mounts.select { |m| m.split(/\s+/)[0] == Pathname.new(fields[0]).realpath.to_s }.empty? + @missing_mounts << fields[1] if @swap_mounts.select { |m| m.split(/\s+/)[0] == Pathname.new(fields[0]).realpath.to_s }.empty? # rubocop:disable Style/IfInsideElse end end end # Main function