Skip to content

Commit

Permalink
fix: delete even single endpoint service (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored May 1, 2024
1 parent dac2c05 commit 423ec36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/project_cleanup/function_source/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ func invoke(ctx context.Context) {
return
}

if len(listResponse.Services) <= 1 {
logger.Printf("Got [%d] services for the project [%s]", len(listResponse.Services), projectId)
if len(listResponse.Services) == 0 {
return
}

Expand Down

0 comments on commit 423ec36

Please sign in to comment.