fix: command output to string
This commit is contained in:
@@ -116,7 +116,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
|
|||||||
failureNEs = append(failureNEs, neInfo.NeType+"/"+neInfo.NeId)
|
failureNEs = append(failureNEs, neInfo.NeType+"/"+neInfo.NeId)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.Trace("command output:", out)
|
log.Tracef("command output:%s", out)
|
||||||
|
|
||||||
md5Sum, err := global.GetFileMD5Sum(zipFilePath)
|
md5Sum, err := global.GetFileMD5Sum(zipFilePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
|
|||||||
// 返回结果,用于记录执行结果
|
// 返回结果,用于记录执行结果
|
||||||
return map[string]any{
|
return map[string]any{
|
||||||
"message": "operation succeeded",
|
"message": "operation succeeded",
|
||||||
"deleteFiles": out,
|
"deleteFiles": string(out),
|
||||||
"affected": affected,
|
"affected": affected,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user