Skip to content

Commit

Permalink
Fix signatuer of the AutodiscoverBuilder function
Browse files Browse the repository at this point in the history
After PR elastic#20281 was merged, the signature of the `autodiscover.ProviderBuilder` changed to accept an additional name (string) parameter.
  • Loading branch information
jorgelbg committed Nov 16, 2020
1 parent 847cefe commit 5e456ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion x-pack/libbeat/autodiscover/providers/nomad/nomad.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ type Provider struct {
}

// AutodiscoverBuilder builds and returns an autodiscover provider
func AutodiscoverBuilder(bus bus.Bus, uuid uuid.UUID, c *common.Config, keystore keystore.Keystore) (autodiscover.Provider, error) {
func AutodiscoverBuilder(
name string,
bus bus.Bus,
uuid uuid.UUID,
c *common.Config,
keystore keystore.Keystore,
) (autodiscover.Provider, error) {
cfgwarn.Experimental("The nomad autodiscover is experimental")
config := defaultConfig()

Expand Down

0 comments on commit 5e456ed

Please sign in to comment.