enh(netapp/ontap): snapmirrors mode - undefined transfer_state (#2985)

This commit is contained in:
qgarnier 2021-07-23 14:12:44 +02:00 committed by GitHub
parent 02d55a8019
commit a361355644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'
};
}