Skip to content

Commit

Permalink
use yellow colored warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis committed Apr 19, 2021
1 parent 04117e6 commit 935addc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/cluster/manager/scale_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"errors"
"time"

"github.com/fatih/color"
"github.com/joomcode/errorx"
perrs "github.com/pingcap/errors"
"github.com/pingcap/tiup/pkg/cliutil"
Expand Down Expand Up @@ -195,11 +196,11 @@ func checkForGlobalConfigs(topoFile string) error {
case "global",
"monitored",
"server_configs":
log.Warnf(
log.Warnf(color.YellowString(
`You have one or more of ["global", "monitored", "server_configs"] fields configured in
the scale out topology, but they will be ignored during the scaling out process.
If you want to use configs different from the existing cluster, cancel now and
set them in the specification fileds for each host.`)
set them in the specification fileds for each host.`))
if err := cliutil.PromptForConfirmOrAbortError("Do you want to continue? [y/N]: "); err != nil {
return err
}
Expand Down

0 comments on commit 935addc

Please sign in to comment.