From 234a5e2b66409c50803da77551de600655c4ffc8 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 26 Sep 2021 11:40:18 +0200 Subject: [PATCH] outposts: fix outposts not correctly updating central state Signed-off-by: Jens Langhammer --- internal/outpost/ak/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }