outposts: fix outposts not correctly updating central state
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
aea1736f70
commit
234a5e2b66
|
@ -116,9 +116,9 @@ func (a *APIController) OnRefresh() error {
|
||||||
log.WithError(err).Error("Failed to fetch outpost configuration")
|
log.WithError(err).Error("Failed to fetch outpost configuration")
|
||||||
return err
|
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()
|
return a.Server.Refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue