Explorar o código

Fix Debian bug #574612: Return WARNING on rebuild

Let check_linux_raid return a WARNING instead of an OK state during
volume recovery.

See: http://bugs.debian.org/574612

(Fixed by Christoph Martin, forwarded by Jan Wagner.)
Holger Weiss %!s(int64=16) %!d(string=hai) anos
pai
achega
753b884088
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      contrib/check_linux_raid.pl

+ 1 - 0
contrib/check_linux_raid.pl

@@ -64,6 +64,7 @@ while(defined $nextdev){
 			} elsif (/recovery = (.*?)\s/) {  
 				$recovery{$device} = $1;
 				($finish{$device}) = /finish=(.*?min)/;
+				$device=undef;
 			} elsif (/^\s*$/) {
 				$device=undef;
 			}