IAM - Fix panic from accessing nil serviceAccount (#95681)

Fix panic from accessing nil serviceAccount
This commit is contained in:
Aaron Godin 2024-11-04 11:18:31 -06:00 committed by GitHub
parent 68aefc73b6
commit ede0b7e9ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}