|
|
@ -104,11 +104,11 @@ func main() {
|
|
|
|
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())
|
|
|
|
fmt.Println(err.Error(), " check ", check.name)
|
|
|
|
checks[index].flag = true
|
|
|
|
checks[index].flag = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if errors.Is(err, errSignEndPoint) {
|
|
|
|
if errors.Is(err, errSignEndPoint) {
|
|
|
|
fmt.Fprintf(os.Stderr, err.Error())
|
|
|
|
fmt.Fprintf(os.Stderr, err.Error(), " check ", check.name)
|
|
|
|
checks[index].flag = true
|
|
|
|
checks[index].flag = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -118,7 +118,8 @@ func main() {
|
|
|
|
strings.Contains(errs.Unwrap(err).Error(), "timeout") ||
|
|
|
|
strings.Contains(errs.Unwrap(err).Error(), "timeout") ||
|
|
|
|
strings.Contains(errs.Unwrap(err).Error(), "context deadline exceeded") {
|
|
|
|
strings.Contains(errs.Unwrap(err).Error(), "context deadline exceeded") {
|
|
|
|
component.ErrorPrint(fmt.Sprintf("try check connection %s", check.name))
|
|
|
|
component.ErrorPrint(fmt.Sprintf("try check connection %s", check.name))
|
|
|
|
continue
|
|
|
|
allSuccess = false
|
|
|
|
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
checks[index].flag = true
|
|
|
|
checks[index].flag = true
|
|
|
|