modify a little mistake: pping print ":ping"

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10552 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-09-19 13:46:51 +00:00
parent 646a9a3353
commit 21ff396236

View File

@ -175,7 +175,7 @@ sub nmap_pping {
}
}
delete $deadnodes{$node};
print "$node: ping\n";
print "$node: ping\n" if ($node);
} elsif (/Nmap scan report for ([^ ]*) /) {
$node=$1;
} elsif (/Host is up./) {
@ -188,7 +188,7 @@ sub nmap_pping {
}
}
delete $deadnodes{$node};
print "$node: ping\n";
print "$node: ping\n" if ($node);
}
}
foreach (sort keys %deadnodes) {