mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
IAM - Fix panic from accessing nil serviceAccount (#95681)
Fix panic from accessing nil serviceAccount
This commit is contained in:
parent
68aefc73b6
commit
ede0b7e9ed
@ -69,6 +69,9 @@ func UIDToIDHandler(saService ServiceAccountRetriever) func(ctx context.Context,
|
||||
OrgID: orgID,
|
||||
UID: resourceID,
|
||||
})
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return strconv.FormatInt(serviceAccount.Id, 10), err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user