-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:
parent
4bf35a8a80
commit
0db3a569b6
@ -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/) {
|
||||
|
Loading…
Reference in New Issue
Block a user