From: Tom Hughes Date: Thu, 21 Dec 2023 10:27:50 +0000 (+0000) Subject: Abort building a geo map if no servers are up X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/3dc60e99dcd936a3228e462d2c31ea9c01249587 Abort building a geo map if no servers are up --- diff --git a/bin/mkgeo b/bin/mkgeo index 9a36ae2..2c0453b 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -149,6 +149,9 @@ foreach my $server (@servers) } } +# Abort if no servers at all are up +exit 0 unless grep { $_->{status} eq "up" } values(%$clusters); + # Create target origins object my $targetorigins = {};