From 1b0022a86d27a3ea3658745c0c4026f0d075fff1 Mon Sep 17 00:00:00 2001 From: medcl Date: Sat, 16 Sep 2023 17:42:51 +0800 Subject: [PATCH] fix get nil endpoint --- bootstrap_check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap_check.go b/bootstrap_check.go index fca79edc..ac7792cc 100644 --- a/bootstrap_check.go +++ b/bootstrap_check.go @@ -52,7 +52,7 @@ func checkElasticsearchRequirements() error{ if targetEsConfig == nil { return fmt.Errorf("cluster config %s was not found", esID) } - var req = util.NewGetRequest(targetEsConfig.Endpoint, nil) + var req = util.NewGetRequest(targetEsConfig.GetAnyEndpoint(), nil) if targetEsConfig.BasicAuth != nil { req.SetBasicAuth(targetEsConfig.BasicAuth.Username, targetEsConfig.BasicAuth.Password) }