Skip to content

Commit

Permalink
fix(project_cleanup): check all cluster locations
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Jul 26, 2024
1 parent 4287d62 commit 14b48d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/project_cleanup/function_source/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ func invoke(ctx context.Context) {

removeProjectClusters := func(projectId string) int {
logger.Printf("Try to remove clusters for [%s]", projectId)
reqLCR := &containerpb.ListClustersRequest{Parent: fmt.Sprintf("projects/%s/locations/*", projectId)}
reqLCR := &containerpb.ListClustersRequest{Parent: fmt.Sprintf("projects/%s/locations/-", projectId)}
listResponse, err := containerService.ListClusters(ctx, reqLCR)
if err != nil {
logger.Printf("Failed to list clusters for [%s], error [%s]", projectId, err.Error())
Expand Down

0 comments on commit 14b48d6

Please sign in to comment.