Skip to content

Commit

Permalink
Merge pull request #173 from openinfradev/import_cluster
Browse files Browse the repository at this point in the history
trivial. minor fix
  • Loading branch information
ktkfree authored Oct 26, 2023
2 parents 0cf29ad + 435fddc commit b495abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/usecase/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,10 @@ func (u *ClusterUsecase) GetNodes(ctx context.Context, clusterId domain.ClusterI
continue
}
clusterId := arr[0]
role := label[10:]
if label[9] != '-' || clusterId != string(cluster.ID) {
if len(arr) < 12 || label[9] != '-' || clusterId != string(cluster.ID) {
continue
}
role := label[10:]
/*
if host.Name == "ip-10-0-12-87.ap-northeast-2.compute.internal" {
continue
Expand Down

0 comments on commit b495abf

Please sign in to comment.