Skip to content

Commit

Permalink
fix: Return early on error when updating clusters (argoproj#8526)
Browse files Browse the repository at this point in the history
Signed-off-by: jannfis <jann@mistrust.net>
  • Loading branch information
jannfis authored Feb 16, 2022
1 parent f059c99 commit 920aace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/clusterinfoupdater.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func (c *clusterInfoUpdater) updateClusters() {
clusters, err := c.db.ListClusters(context.Background())
if err != nil {
log.Warnf("Failed to save clusters info: %v", err)
return
}
var clustersFiltered []appv1.Cluster
if c.clusterFilter == nil {
Expand Down

0 comments on commit 920aace

Please sign in to comment.