(plugin) storage::netapp::ontap::restapi - mode hardware skip uninsta… (#4624)

This commit is contained in:
Stéphane Duret 2023-09-04 15:37:27 +02:00 committed by GitHub
commit 5fdc13ddcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -43,9 +43,22 @@ sub check {
next if ($self->check_filter(section => 'shelf', instance => $shelf_instance));
foreach my $fru (@{$shelf->{frus}}) {
my $instance = $fru->{serial_number};
my $name = $fru->{type} . ':' . $fru->{id};
if ($fru->{installed} !~ /true|1/i) {
$self->{output}->output_add(
long_msg => sprintf(
"fru '%s' shelf '%s' is uninstalled",
$name,
$shelf_name
)
);
next;
}
my $instance = $fru->{serial_number};
next if ($self->check_filter(section => 'fru', instance => $instance));
$self->{components}->{fru}->{total}++;

View File

@ -96,7 +96,7 @@ Check hardware.
=item B<--component>
Which component to check (Default: '.*').
Can be: 'shelf', 'bay', 'fru'.
Can be: 'bay', 'disk', 'fru', 'shelf'.
=item B<--filter>