fix: command output to string

This commit is contained in:
2023-10-28 16:50:29 +08:00
parent bda7068b90
commit bf2860dcce
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
failureNEs = append(failureNEs, neInfo.NeType+"/"+neInfo.NeId)
continue
}
log.Trace("command output:", out)
log.Tracef("command output:%s", out)
md5Sum, err := global.GetFileMD5Sum(zipFilePath)
if err != nil {

View File

@@ -88,7 +88,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
// 返回结果,用于记录执行结果
return map[string]any{
"message": "operation succeeded",
"deleteFiles": out,
"deleteFiles": string(out),
"affected": affected,
}, nil
}