2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-07 02:38:15 +00:00

Correct incorrect loop keyword in nodestat

If a system had 3389 and sshd running, it triggered a bug.
Fix by using the correct loop flow keyword for perl.
This commit is contained in:
Jarrod Johnson
2019-01-03 09:23:13 -05:00
parent 919cae25af
commit a6898b9304

View File

@@ -722,12 +722,12 @@ sub process_request_nmap {
$installquerypossible = 1; #It is possible to actually query node
} elsif ($1 ne "3001") {
if ($1 == 3389 and $states{'sshd'}) {
continue;
next;
}
$states{ $portservices{$1} } = 1;
if ($1 == 22 and $states{'rdp'}) {
delete $states{'rdp'};
continue;
next;
}
}
}