From 6af12e74b861004fac4be7561c56a8c0b322d4b3 Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Sun, 2 Jul 2023 19:01:13 -0500 Subject: [PATCH] smart-v1: add the ability to run tests on all configured devs via the extend and fix when useSN=1 (#479) * add the ability to run tests on all specified devices via -t * properly save the results when exit is non-zero and useSN=1 --- snmp/smart-v1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snmp/smart-v1 b/snmp/smart-v1 index 20da1a9..0df9abd 100755 --- a/snmp/smart-v1 +++ b/snmp/smart-v1 @@ -866,6 +866,8 @@ foreach my $line (@disks) { # only bother to save this if useSN is not being used if ( !$useSN ) { $to_return->{data}{disks}{$disk_id} = \%IDs; + } elsif ( $IDs{exit} == 0 ) { + $to_return->{data}{disks}{$disk_id} = \%IDs; } } ## end foreach my $line (@disks)