From 423ec36e0fb7ddb046e3ef6338bbfb18387cbacf Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Wed, 1 May 2024 16:42:55 -0700 Subject: [PATCH] fix: delete even single endpoint service (#207) --- modules/project_cleanup/function_source/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/project_cleanup/function_source/main.go b/modules/project_cleanup/function_source/main.go index bb579f5a..52e9837a 100644 --- a/modules/project_cleanup/function_source/main.go +++ b/modules/project_cleanup/function_source/main.go @@ -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 }