(plugin) storage::netapp::ontap::restapi - mode hardware missing disk state (#4298)
This commit is contained in:
parent
ef8e1962be
commit
35366f0905
|
@ -39,6 +39,9 @@ sub check {
|
||||||
foreach my $disk (@{$disks->{records}}) {
|
foreach my $disk (@{$disks->{records}}) {
|
||||||
next if ($self->check_filter(section => 'disk', instance => $disk->{name}));
|
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->{components}->{disk}->{total}++;
|
||||||
$self->{output}->output_add(
|
$self->{output}->output_add(
|
||||||
long_msg => sprintf(
|
long_msg => sprintf(
|
||||||
|
|
|
@ -46,7 +46,8 @@ sub set_system {
|
||||||
['removed', 'OK'],
|
['removed', 'OK'],
|
||||||
['spare', 'OK'],
|
['spare', 'OK'],
|
||||||
['unfail', 'OK'],
|
['unfail', 'OK'],
|
||||||
['zeroing', 'OK']
|
['zeroing', 'OK'],
|
||||||
|
['n/a', 'OK']
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue