mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-05 22:25:49 +08:00
fix: Modify the service status judgment logic (#9301)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 3s
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 3s
This commit is contained in:
parent
874717cbcd
commit
3061d640ce
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue