1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

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
This commit is contained in:
Zane C. Bowers-Hadley
2023-07-02 19:01:13 -05:00
committed by GitHub
parent 4bd6909f99
commit 6af12e74b8

View File

@@ -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)