fix: pass context.TODO by getting admin context
fix linter warnings Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
parent
0a53b8f6d8
commit
2a3e4d6563
5 changed files with 6 additions and 6 deletions
|
|
@ -37,7 +37,7 @@ import (
|
|||
)
|
||||
|
||||
func NewAPIController(r *runner.Runner, authenticator *auth.Authenticator, hub *wsWriter.Hub) (*APIController, error) {
|
||||
controllerInfo, err := r.GetControllerInfo(auth.GetAdminContext(nil))
|
||||
controllerInfo, err := r.GetControllerInfo(auth.GetAdminContext(context.TODO()))
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to get controller info")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue