fix(dell/os10): hardware mode - os version (#3000)

This commit is contained in:
qgarnier 2021-07-30 09:05:45 +02:00 committed by GitHub
parent 82aa131667
commit 7f334942bf
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ sub get_system_information {
my $result = $options{snmp}->get_leef(oids => [$oid_sysdescr]);
my $version = 'unknown';
if (defined($result->{$oid_sysdescr}) && $result->{$oid_sysdescr} =~ /OS Version: ([0-9\.]+)/msi) {
if (defined($result->{$oid_sysdescr}) && $result->{$oid_sysdescr} =~ /OS Version:\s*([a-zA-Z0-9\.]+)/msi) {
$version = $1;
$version =~ s/\.$//;
}