fix: Fix the process status error issue (#9285)

This commit is contained in:
2025-06-25 22:05:29 +08:00 committed by GitHub
parent 4f377c04b8
commit 9cba19d4db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -602,7 +602,7 @@ func getProcessStatus(config *response.SupervisorProcessConfig, containerName st
out, err = exec.Command("supervisorctl", processNames...).Output()
output = string(out)
}
if containerName == "" && err != nil {
if output == "" && err != nil {
return err
}
lines := strings.Split(output, "\n")