From dd3761835a901e055c323c9c747ea5f4d5325500 Mon Sep 17 00:00:00 2001 From: Dylan Wen Date: Mon, 29 Jun 2020 11:21:06 +0800 Subject: [PATCH] cluster: show message for impossible fix --- components/cluster/command/check.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/components/cluster/command/check.go b/components/cluster/command/check.go index 7b5ddd28ec..3216b87f5f 100644 --- a/components/cluster/command/check.go +++ b/components/cluster/command/check.go @@ -407,15 +407,6 @@ func fixFailedChecks(ctx *task.Context, host string, res *operator.CheckResult, ), true) msg = fmt.Sprintf("will try to %s, reboot might be needed", color.HiBlueString("disable SELinux")) - case operator.CheckNameOSVer, - operator.CheckNameCPUThreads, - operator.CheckNameDisks, - operator.CheckNameEpoll, - operator.CheckNameMem, - operator.CheckNameCommand, - operator.CheckNameFio: - // don't show unsupported message for checks that are impossible to fix by us - return "", nil default: msg = fmt.Sprintf("%s, auto fixing not supported", res) }