From 435fddcab34520207708db779c57c47b4cfd3b32 Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Thu, 26 Oct 2023 13:49:29 +0900 Subject: [PATCH] trivial. minor fix --- internal/usecase/cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/usecase/cluster.go b/internal/usecase/cluster.go index de929b82..a5c65f7d 100644 --- a/internal/usecase/cluster.go +++ b/internal/usecase/cluster.go @@ -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