|
|
@ -102,6 +102,7 @@ func main() {
|
|
|
|
if !check.flag {
|
|
|
|
if !check.flag {
|
|
|
|
err = check.function(check.config)
|
|
|
|
err = check.function(check.config)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
|
|
|
|
if check.name == "Minio" {
|
|
|
|
if check.name == "Minio" {
|
|
|
|
if errors.Is(err, errMinioNotEnabled) {
|
|
|
|
if errors.Is(err, errMinioNotEnabled) {
|
|
|
|
fmt.Println(err.Error(), " check ", check.name)
|
|
|
|
fmt.Println(err.Error(), " check ", check.name)
|
|
|
@ -113,6 +114,7 @@ func main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error()))
|
|
|
|
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error()))
|
|
|
|
if strings.Contains(errs.Unwrap(err).Error(), "connection refused") ||
|
|
|
|
if strings.Contains(errs.Unwrap(err).Error(), "connection refused") ||
|
|
|
|
strings.Contains(errs.Unwrap(err).Error(), "timeout") ||
|
|
|
|
strings.Contains(errs.Unwrap(err).Error(), "timeout") ||
|
|
|
|