From 4763218de4d75ed713dd6c0eafb6941c68652572 Mon Sep 17 00:00:00 2001 From: Quirin Vetterl <140174674+qrnvttrl@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:06:38 +0100 Subject: [PATCH] Update rest/health.go Co-authored-by: Gerrit --- rest/health.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/health.go b/rest/health.go index 3d69dee..465ffbd 100644 --- a/rest/health.go +++ b/rest/health.go @@ -194,7 +194,7 @@ func DeriveOverallHealthStatus(services map[string]HealthResult) HealthStatus { ) for k, service := range services { - if service.Status == "" { + if len(service.Services) > 0 && service.Status == "" { service.Status = DeriveOverallHealthStatus(service.Services) } services[k] = service