diff --git a/src/storage/netapp/ontap/restapi/mode/components/disk.pm b/src/storage/netapp/ontap/restapi/mode/components/disk.pm index 3e25c575a..dcaa6481a 100644 --- a/src/storage/netapp/ontap/restapi/mode/components/disk.pm +++ b/src/storage/netapp/ontap/restapi/mode/components/disk.pm @@ -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( diff --git a/src/storage/netapp/ontap/restapi/mode/hardware.pm b/src/storage/netapp/ontap/restapi/mode/hardware.pm index 1ee7589e0..b0ef1d260 100644 --- a/src/storage/netapp/ontap/restapi/mode/hardware.pm +++ b/src/storage/netapp/ontap/restapi/mode/hardware.pm @@ -46,7 +46,8 @@ sub set_system { ['removed', 'OK'], ['spare', 'OK'], ['unfail', 'OK'], - ['zeroing', 'OK'] + ['zeroing', 'OK'], + ['n/a', 'OK'] ] };