Skip to content

Commit

Permalink
cluster: fix ngm nightly not start by default (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar authored Feb 21, 2022
1 parent 10da905 commit eb01ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cluster/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"github.com/pingcap/tiup/pkg/meta"
"github.com/pingcap/tiup/pkg/proxy"
"github.com/pingcap/tiup/pkg/tui"
"github.com/pingcap/tiup/pkg/utils"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
"golang.org/x/mod/semver"
Expand Down Expand Up @@ -416,7 +417,7 @@ func (s *Specification) AdjustByVersion(clusterVersion string) {
server.DataDir = ""
}
}
if semver.Compare(clusterVersion, "v5.4.0") >= 0 {
if semver.Compare(clusterVersion, "v5.4.0") >= 0 || strings.Contains(clusterVersion, utils.NightlyVersionAlias) {
for _, m := range s.Monitors {
if m.NgPort == 0 {
m.NgPort = 12020
Expand Down

0 comments on commit eb01ede

Please sign in to comment.