From b9f422185e874c3d03ddae51d61d6bec941e2326 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 30 Jul 2023 10:14:20 +0100 Subject: [PATCH] Ignore geodns clusters with a zero request limit --- bin/mkgeo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"; -- 2.39.5