Skip to content

Commit

Permalink
cluster: No port conflicts were detected during scale-out of the clus…
Browse files Browse the repository at this point in the history
…ter imported from ansible (#1656)
  • Loading branch information
srstack authored Dec 7, 2021
1 parent f873e74 commit 23c7bef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/cluster/spec/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,7 @@ func (s *Specification) portConflictsDetect() error {
compSpecs := topoSpec.Field(i)
for index := 0; index < compSpecs.Len(); index++ {
compSpec := reflect.Indirect(compSpecs.Index(index))
// skip nodes imported from TiDB-Ansible
if compSpec.Addr().Interface().(InstanceSpec).IsImported() {
continue
}

// check hostname
host := compSpec.FieldByName("Host").String()
cfg := strings.Split(topoType.Field(i).Tag.Get("yaml"), ",")[0] // without meta
Expand Down

0 comments on commit 23c7bef

Please sign in to comment.