From 98d2005baefbbc443245ea24aabf684d285d510c Mon Sep 17 00:00:00 2001 From: Andrey Pazychev Date: Sun, 17 May 2020 16:17:47 +0300 Subject: [PATCH] Eltex fix undef model --- lib/SNMP/Info/Layer3/Eltex.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SNMP/Info/Layer3/Eltex.pm b/lib/SNMP/Info/Layer3/Eltex.pm index bc6cf337..35a2a18c 100644 --- a/lib/SNMP/Info/Layer3/Eltex.pm +++ b/lib/SNMP/Info/Layer3/Eltex.pm @@ -51,7 +51,7 @@ sub model { $descr =~ /Eltex\s(.*)\ssoftware\sversion\s(.*)\sbuild\s(\d+)/; return $1; } - elsif ($model !~ /MES\d+/) { + elsif (defined $model and $model !~ /MES\d+/) { $model = $obj->model_oid_mes . ' ' . $obj->model_oid || undef; } if (defined $model and defined $hw) {