IAM - Fix panic from accessing nil serviceAccount (#95681)
Fix panic from accessing nil serviceAccount
This commit is contained in:
1 parent
68aefc73b6
commit
ede0b7e9ed
1 file changed
+3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user