diff --git a/internal/outpost/ak/api.go b/internal/outpost/ak/api.go index b8a894523..4026025b2 100644 --- a/internal/outpost/ak/api.go +++ b/internal/outpost/ak/api.go @@ -116,9 +116,9 @@ func (a *APIController) OnRefresh() error { log.WithError(err).Error("Failed to fetch outpost configuration") return err } - outpost := outposts.Results[0] + a.Outpost = outposts.Results[0] - log.WithField("name", outpost.Name).Debug("Fetched outpost configuration") + log.WithField("name", a.Outpost.Name).Debug("Fetched outpost configuration") return a.Server.Refresh() }