fix: Modify the service status judgment logic (#9301)

This commit is contained in:
ssongliu
2025-06-26 17:18:14 +08:00
committed by GitHub
parent 874717cbcd
commit 3061d640ce

View File

@@ -177,7 +177,7 @@ func executeCommand(ctx context.Context, command string, args ...string) ([]byte
cmd.Stderr = &buf
if err := cmd.Run(); err != nil {
return nil, &CommandError{
return buf.Bytes(), &CommandError{
Cmd: cmd.String(),
Output: buf.String(),
Err: err,