From a6898b9304997bd37f3fb3de905f7292dec44910 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 3 Jan 2019 09:23:13 -0500 Subject: [PATCH] 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. --- xCAT-server/lib/xcat/plugins/nodestat.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index f3ac62ab5..6a3b1979f 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -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; } } }