mirror of
https://github.com/schoebel/mars
synced 2025-03-11 07:47:41 +00:00
marsadm: skip empty peer ips
This commit is contained in:
parent
2d77d0c396
commit
4deb7c5f33
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user