fix(dell/os10): hardware mode - os version (#3000)
This commit is contained in:
parent
82aa131667
commit
7f334942bf
|
@ -65,7 +65,7 @@ sub get_system_information {
|
||||||
my $result = $options{snmp}->get_leef(oids => [$oid_sysdescr]);
|
my $result = $options{snmp}->get_leef(oids => [$oid_sysdescr]);
|
||||||
|
|
||||||
my $version = 'unknown';
|
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 = $1;
|
||||||
$version =~ s/\.$//;
|
$version =~ s/\.$//;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue