Raisecom. HW regexp bugfix

This commit is contained in:
Andrey Pazychev
2020-05-20 22:18:57 +03:00
parent 2b1b53e539
commit 84c870f911

View File

@@ -100,8 +100,8 @@ sub main {
#All another known ways to HW
while (not defined($hw)) {
$hw = $obj->hw_oid_8886_6_140;
$hw =~ s/.*\s[v,V]ersion\s(.*)/$1/ if defined $1;
$obj->hw_oid_8886_6_140 =~ /.*[v,V]ersion\s+(.*)/;
$hw = $1 if defined $1;
last;
}