marsadm: skip empty peer ips

This commit is contained in:
Thomas Schoebel-Theuer 2019-07-08 12:56:23 +02:00
parent 2d77d0c396
commit 4deb7c5f33
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ sub make_ssh_cmd {
RETRY:
for my $this_peer ($peer, $peer_ip) {
next unless defined($this_peer);
next unless $this_peer;
# check whether machine is reachable
if (system("ping -c1 $this_peer")) {
lwarn "cannot ping '$this_peer'\n";