mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix bug with dep error exists attr
This commit is contained in:
@@ -156,15 +156,14 @@ export class DepErrorService {
|
||||
|
||||
const depStatus = getInstalledBaseStatus(dep.statusInfo)
|
||||
|
||||
// not running
|
||||
if (depStatus !== 'running' && depStatus !== 'starting') {
|
||||
return {
|
||||
type: 'notRunning',
|
||||
}
|
||||
}
|
||||
|
||||
// health check failure
|
||||
if (currentDep?.kind === 'running') {
|
||||
// not running
|
||||
if (depStatus !== 'running' && depStatus !== 'starting') {
|
||||
return {
|
||||
type: 'notRunning',
|
||||
}
|
||||
}
|
||||
// health check failure
|
||||
for (let id of currentDep.healthChecks) {
|
||||
const check = dep.statusInfo.health[id]
|
||||
if (check?.result !== 'success') {
|
||||
|
||||
Reference in New Issue
Block a user