-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error out on invalid Autodiscover template conditions settings #7200
Conversation
libbeat/autodiscover/autodiscover.go
Outdated
@@ -54,7 +56,7 @@ func NewAutodiscover(name string, pipeline beat.Pipeline, adapter Adapter, confi | |||
for _, providerCfg := range config.Providers { | |||
provider, err := Registry.BuildProvider(bus, providerCfg) | |||
if err != nil { | |||
return nil, err | |||
return nil, errors.Wrap(err, "Error in autodiscover provider settings") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Error/error
f3ee3a6
to
280b257
Compare
280b257
to
c7c8e02
Compare
This one should be ready for review |
@exekias Is there a way to trigger the bug via a unit test? |
8f2ce0b
to
4b62b41
Compare
👍 added some more tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM waiting for the 💚
This should fix #7183