From b8f24133b4e65181d651eb343f43bb9f0ed62953 Mon Sep 17 00:00:00 2001 From: dobarx Date: Wed, 3 Apr 2024 15:19:23 +0300 Subject: [PATCH] internal/elastic: remove defaultURL for elasticsearch --- internal/elastic/plugin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/elastic/plugin.go b/internal/elastic/plugin.go index 107388ed..fe19fa4b 100644 --- a/internal/elastic/plugin.go +++ b/internal/elastic/plugin.go @@ -40,8 +40,7 @@ func Plugin(version string, loader KibanaClientLoaderFn) *plugin.Schema { func makeSearchClient(pcfg cty.Value) (*es.Client, error) { cfg := &es.Config{ - Addresses: []string{defaultBaseURL}, - Username: defaultUsername, + Username: defaultUsername, } if pcfg.IsNull() { return nil, fmt.Errorf("configuration is required")