Raisecom. HW regexp bugfix
This commit is contained in:
@@ -100,8 +100,8 @@ sub main {
|
|||||||
|
|
||||||
#All another known ways to HW
|
#All another known ways to HW
|
||||||
while (not defined($hw)) {
|
while (not defined($hw)) {
|
||||||
$hw = $obj->hw_oid_8886_6_140;
|
$obj->hw_oid_8886_6_140 =~ /.*[v,V]ersion\s+(.*)/;
|
||||||
$hw =~ s/.*\s[v,V]ersion\s(.*)/$1/ if defined $1;
|
$hw = $1 if defined $1;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user