From 3dc60e99dcd936a3228e462d2c31ea9c01249587 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 21 Dec 2023 10:27:50 +0000 Subject: [PATCH] Abort building a geo map if no servers are up --- bin/mkgeo | 3 +++ 1 file changed, 3 insertions(+) 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 = {}; -- 2.39.5