bin/check-raid.rb in sensu-plugins-raid-checks-2.0.1 vs bin/check-raid.rb in sensu-plugins-raid-checks-2.0.2

- old
+ new

@@ -42,10 +42,10 @@ # def check_software_raid return unless File.exist?('/proc/mdstat') contents = File.read('/proc/mdstat') mg = contents.lines.grep(/active|blocks/) - return unless mg.empty? + return if mg.empty? sg = mg.to_s.lines.grep(/\]\(F\)|[\[U]_/) if sg.empty? ok 'Software RAID OK' else warning 'Software RAID warning'