From fbf6cb9f4b9896b6035857c3de66f7ab3fc98fa3 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 4 Dec 2020 09:40:25 +0100 Subject: [PATCH] fix compellent snmp --- storage/dell/compellent/snmp/mode/globalstatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/dell/compellent/snmp/mode/globalstatus.pm b/storage/dell/compellent/snmp/mode/globalstatus.pm index f4a38ec8e..0fc3ac6be 100644 --- a/storage/dell/compellent/snmp/mode/globalstatus.pm +++ b/storage/dell/compellent/snmp/mode/globalstatus.pm @@ -104,12 +104,12 @@ sub manage_selection { my $display = ''; foreach (keys %{$snmp_result->{$oid_scCtlrEntry}}) { next if (! /^$mapping_ctrl->{ctrl_model}->{oid}\.(.*)$/); - my $result = $self->{snmp}->map_instance(mapping => $mapping_ctrl, results => $snmp_result->{$oid_scCtlrEntry}, instance => $1); + my $result = $options{snmp}->map_instance(mapping => $mapping_ctrl, results => $snmp_result->{$oid_scCtlrEntry}, instance => $1); $display = $result->{ctrl_model}; last if (length($display)); } - my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $snmp_result->{$oid_storageCenterObjects}, instance => 0); + my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result->{$oid_storageCenterObjects}, instance => 0); $display .= '.' . $result->{build_number}; $self->{global} = {