diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index 6afdc2337..83a6b4987 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -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) {