fix: don't show health status for exited containers (#7317)

This commit is contained in:
Andras Bacsai authored and GitHub committed 2025-11-24 10:29:57 +01:00
commit bf428a0e1c
11 files changed
+65 -48

No files matched your search

+6 -1
View File
@@ -223,7 +223,12 @@ class Service extends BaseModel
return 'unknown:unknown:excluded';
}
return 'exited:unhealthy:excluded';
return 'exited';
}
// If health is null/empty, return just the status without trailing colon
if ($complexHealth === null || $complexHealth === '') {
return $complexStatus;
}
return "{$complexStatus}:{$complexHealth}";