outposts: fix initial refresh not calling Server.Refresh()

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-20 21:47:32 +01:00
parent fc9d270992
commit f910da0f8a
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,11 @@ func NewAPIController(akURL url.URL, token string) *APIController {
// Start Starts all handlers, non-blocking
func (a *APIController) Start() error {
err := a.StartBackgorundTasks()
err := a.Server.Refresh()
if err != nil {
return err
}
err = a.StartBackgorundTasks()
if err != nil {
return err
}