(plugin) storage::netapp::ontap::restapi - mode hardware missing disk state (#4298)

This commit is contained in:
qgarnier 2023-03-29 11:44:17 +02:00 committed by David Boucher
parent ef8e1962be
commit 35366f0905
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,9 @@ sub check {
foreach my $disk (@{$disks->{records}}) {
next if ($self->check_filter(section => 'disk', instance => $disk->{name}));
# state can be missing
$disk->{state} = defined($disk->{state}) ? $disk->{state} : 'n/a';
$self->{components}->{disk}->{total}++;
$self->{output}->output_add(
long_msg => sprintf(

View File

@ -46,7 +46,8 @@ sub set_system {
['removed', 'OK'],
['spare', 'OK'],
['unfail', 'OK'],
['zeroing', 'OK']
['zeroing', 'OK'],
['n/a', 'OK']
]
};