From 5990dc13dc7a5caaa5cf05b3a193638ad25656b1 Mon Sep 17 00:00:00 2001 From: Andrew Wilkins Date: Wed, 7 Dec 2022 21:41:58 +0800 Subject: [PATCH] Revert workaround for missing `fleet.hosts` This is no longer needed, with https://github.com/elastic/elastic-agent/pull/1802 --- internal/beater/beater.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/beater/beater.go b/internal/beater/beater.go index 7242f382485..e65511772a5 100644 --- a/internal/beater/beater.go +++ b/internal/beater/beater.go @@ -234,11 +234,6 @@ func (s *Runner) Run(ctx context.Context) error { } }() } - - // BUG(axw) fleet.hosts isn't being sent to APM Server in ESS, so assume co-location. - if len(s.fleetConfig.Hosts) == 0 { - s.fleetConfig.Hosts = []string{"https://localhost:8220"} - } } if s.config.JavaAttacherConfig.Enabled {