From: dgalloway Date: Mon, 21 Sep 2015 17:25:02 +0000 (-0400) Subject: Found typo in conditional X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fd21464dd5b59064e82a1efd58cb4de58ff069cc;p=ceph-cm-ansible.git Found typo in conditional --- diff --git a/roles/testnode/files/libexec/smart.pl b/roles/testnode/files/libexec/smart.pl index 23b0818..d291a0a 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);