From: Tom Hughes Date: Sun, 30 Jul 2023 09:14:20 +0000 (+0100) Subject: Ignore geodns clusters with a zero request limit X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/b9f422185e874c3d03ddae51d61d6bec941e2326 Ignore geodns clusters with a zero request limit --- 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";