X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/c1aae85417129e1447c90e3b6578a3e55d1f2e0e..48ad53752f73b7e21836f3f935800a42d8c764c6:/bin/mkgeo diff --git a/bin/mkgeo b/bin/mkgeo index 2b7d3af..9a36ae2 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -35,7 +35,7 @@ while (my($name,$cluster) = each %$clusters) push @servers, $server; } } - else + elsif ($cluster->{requests} > 0) { my $server = { cluster => $cluster, @@ -50,6 +50,10 @@ while (my($name,$cluster) = each %$clusters) push @servers, $server; } + else + { + $cluster->{servers} = []; + } $cluster->{name} = $name; $cluster->{status} = "down";