IAM - Fix panic from accessing nil serviceAccount (#95681)
Fix panic from accessing nil serviceAccount
This commit is contained in:
@@ -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