From fd21464dd5b59064e82a1efd58cb4de58ff069cc Mon Sep 17 00:00:00 2001 From: dgalloway Date: Mon, 21 Sep 2015 13:25:02 -0400 Subject: [PATCH] Found typo in conditional --- roles/testnode/files/libexec/smart.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/testnode/files/libexec/smart.pl b/roles/testnode/files/libexec/smart.pl index 23b08183..d291a0a8 100644 --- a/roles/testnode/files/libexec/smart.pl +++ b/roles/testnode/files/libexec/smart.pl @@ -99,7 +99,7 @@ sub smartctl my $l = chr(ord('a') + $drive - 1); $message = "Drive $drive (sd$l) has $count $type sectors"; - if ( ( $type =~ /reallocated/i && $count > $realloc ) && ( $type =~ /pending/i && $count > $pend ) && ( $type =~ /pending/i && $count > $uncorrect ) ) + if ( ( $type =~ /reallocated/i && $count > $realloc ) && ( $type =~ /pending/i && $count > $pend ) && ( $type =~ /uncorrect/i && $count > $uncorrect ) ) { $crit = 1; push(@out,$message); -- 2.47.3