From 1547eb74be03a40f149fd5599ba9e7d13ad8da46 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/centreon-plugins/storage/netapp/ontap/restapi/mode/snapmirrors.pm b/centreon-plugins/storage/netapp/ontap/restapi/mode/snapmirrors.pm index fc838b79b..b7f9fafae 100644 --- a/centreon-plugins/storage/netapp/ontap/restapi/mode/snapmirrors.pm +++ b/centreon-plugins/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' }; }