Skip to content

Commit

Permalink
trivial. minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Oct 26, 2023
1 parent 2fc1238 commit 435fddc
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 435fddc

Please sign in to comment.