]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Found typo in conditional
authordgalloway <dgallowa@REDHAT.COM>
Mon, 21 Sep 2015 17:25:02 +0000 (13:25 -0400)
committerdgalloway <dgallowa@REDHAT.COM>
Mon, 21 Sep 2015 17:30:47 +0000 (13:30 -0400)
roles/testnode/files/libexec/smart.pl

index 23b081836f27b2fa29483949c14e0fa6f53964b4..d291a0a8e2f569b264198a84e249d1b545019032 100644 (file)
@@ -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);