Skip to content

Commit

Permalink
Update rest/health.go
Browse files Browse the repository at this point in the history
Co-authored-by: Gerrit <[email protected]>
  • Loading branch information
qrnvttrl and Gerrit91 authored Mar 5, 2024
1 parent d58bd14 commit 4763218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4763218

Please sign in to comment.