2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-17 20:00:19 +00:00

switchdiscover.pm: fix a minor issue for pull request 1003

This commit is contained in:
WangXiaoPeng
2016-05-04 23:54:29 -04:00
parent ee00470df0
commit a05c28c05e

View File

@ -863,7 +863,7 @@ sub snmp_scan {
foreach my $line (@lines) {
my @array = split / /, $line;
my $ip;
if ($nmap_version <= 4.75) {
if (xCAT::Utils->version_cmp($nmap_version,"4.75") <= 0) {
$ip = $array[1];
} else {
$ip = $array[5];