Skip to content

Commit

Permalink
internal/elastic: remove defaultURL for elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
dobarx committed Apr 3, 2024
1 parent f7fadef commit b8f2413
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/elastic/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b8f2413

Please sign in to comment.