-pping exits cleanly with empty or invalid noderange

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-03-25 20:18:14 +00:00
parent 4bf35a8a80
commit 0db3a569b6

View File

@ -76,6 +76,9 @@ if ($interface) {
}
#exec "fping ".join(' ',@nodes). " 2> /dev/null";
unless (scalar(@nodes)) {
exit;
}
open (FPING, "fping ".join(' ',@nodes). " 2> /dev/null|") or die("Cannot open fping pipe: $!");
while (<FPING>) {
if ($_ =~ /is unreachable/) {