Skip to content

Commit

Permalink
remove tls setting
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Nov 29, 2024
1 parent 9da083e commit 3710448
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/pkg/agent/install/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/schollz/progressbar/v3"

"github.com/elastic/elastic-agent-libs/logp"
"github.com/elastic/elastic-agent-libs/transport/tlscommon"
"github.com/elastic/elastic-agent/internal/pkg/agent/application/info"
"github.com/elastic/elastic-agent/internal/pkg/agent/application/paths"
"github.com/elastic/elastic-agent/internal/pkg/agent/application/secret"
Expand Down Expand Up @@ -95,9 +94,6 @@ func Uninstall(ctx context.Context, cfgFile, topPath, uninstallToken string, log
// Once the root-cause is identified then this can be re-enabled on Windows.
// Notify fleet-server while it is still running if it's running locally
if notifyFleet && localFleet && runtime.GOOS != "windows" {
if cfg.Fleet.Client.Transport.TLS != nil {
cfg.Fleet.Client.Transport.TLS.VerificationMode = tlscommon.VerifyCertificate
}
cfg.Fleet.Client.Hosts = []string{cfg.Fleet.Client.Host}
notifyFleetAuditUninstall(ctx, log, pt, cfg, ai) //nolint:errcheck // ignore the error as we can't act on it
}
Expand Down

0 comments on commit 3710448

Please sign in to comment.