Skip to content

Commit

Permalink
Abort building a geo map if no servers are up
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Dec 21, 2023
1 parent 00cb30d commit 3dc60e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/mkgeo
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};

Expand Down

0 comments on commit 3dc60e9

Please sign in to comment.