From a361355644fd6a534d5869f2a8ab76669de20306 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 23 Jul 2021 14:12:44 +0200 Subject: [PATCH] enh(netapp/ontap): snapmirrors mode - undefined transfer_state (#2985) --- storage/netapp/ontap/restapi/mode/snapmirrors.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/netapp/ontap/restapi/mode/snapmirrors.pm b/storage/netapp/ontap/restapi/mode/snapmirrors.pm index fc838b79b..b7f9fafae 100644 --- a/storage/netapp/ontap/restapi/mode/snapmirrors.pm +++ b/storage/netapp/ontap/restapi/mode/snapmirrors.pm @@ -91,7 +91,7 @@ sub manage_selection { display => $name, healthy => $_->{healthy} =~ /true|1/i ? 'true' : 'false', state => $_->{state}, - transfer_state => $_->{transfer}->{state} + transfer_state => defined($_->{transfer}->{state}) ? $_->{transfer}->{state} : 'n/a' }; }