-
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
Revert "[agentbeat] Fix agentbeat capabilities" #40510
Conversation
This reverts commit 36cef2f.
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
x-pack/agentbeat/main.go
Outdated
@@ -70,12 +70,8 @@ func prepareCommand(rootCmd *cmd.BeatsRootCmd) *cobra.Command { | |||
// filename, as all the beats set this in the initialization. | |||
err := cfgfile.ChangeDefaultCfgfileFlag(rootCmd.Use) | |||
if err != nil { | |||
panic(fmt.Errorf("failed to set default config file path: %w", err)) | |||
panic(fmt.Errorf("failed to set default config file path: %v", err)) |
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.
Should this be a %w instead?
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.
Even though I believe nothing will ever try to recover from this panic, I believe it's good to make the linter happy.
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.
Fixed.
@blakerouse I think we should backport this revert PR, because my original PR was also backported. |
…s" (#40575) * Revert "[agentbeat] Fix agentbeat capabilities" (#40510) * Revert "[agentbeat] Fix agentbeat capabilities (#40466)" This reverts commit 36cef2f. * Update main.go (cherry picked from commit f6b8701) * Update CHANGELOG.next.asciidoc --------- Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
Reverts #40466 as the change in this PR elastic/elastic-agent#5290 removes the need for the agentbeat itself to promote its own capabilites.