Skip to content

Commit

Permalink
smart-v1: send useSN value along in the data (#480)
Browse files Browse the repository at this point in the history
* send useSN along in the data

* remove a extra ,
  • Loading branch information
VVelox committed Jul 3, 2023
1 parent 6af12e7 commit 4778070
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions snmp/smart-v1
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,6 @@ if ( !$opts{g} ) {
}
}

my $to_return = {
data => { disks => {}, exit_nonzero => 0, unhealthy => 0, },
version => 1,
error => 0,
errorString => '',
};

#
#
# guess if asked
Expand Down Expand Up @@ -550,6 +543,12 @@ if ( !defined( $opts{u} ) ) {
# Process each disk
#
#
my $to_return = {
data => { disks => {}, exit_nonzero => 0, unhealthy => 0, useSN => $useSN },
version => 1,
error => 0,
errorString => '',
};
foreach my $line (@disks) {
my $disk;
my $name;
Expand Down

0 comments on commit 4778070

Please sign in to comment.