outposts: fix outposts not correctly updating central state

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-26 11:40:18 +02:00
parent aea1736f70
commit 234a5e2b66
1 changed files with 2 additions and 2 deletions

View File

@ -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()
}