fix(climc): monitor-alert-test-run prints result error (#21212)

This commit is contained in:
Zexi Li
2024-09-11 20:04:40 +08:00
committed by GitHub
parent d2f2d9ba77
commit e4fd6508c2
2 changed files with 3 additions and 14 deletions
+1 -6
View File
@@ -15,7 +15,6 @@
package monitor
import (
"encoding/json"
"fmt"
"yunion.io/x/pkg/errors"
@@ -46,11 +45,7 @@ func init() {
if err != nil {
return errors.Wrap(err, "DoTestRun")
}
jsonBytes, err := json.MarshalIndent(ret, "", " ")
if err != nil {
return errors.Wrap(err, "MarshalIndent")
}
fmt.Printf("%s\n", jsonBytes)
fmt.Printf("%s\n", ret.PrettyString())
return nil
})
}