Skip to content

Commit

Permalink
Align FetchRoleList to continue on missing role
Browse files Browse the repository at this point in the history
  • Loading branch information
smallinsky committed Jul 30, 2024
1 parent bea9ffd commit 753f0fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/services/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,9 @@ func FetchRoleList(roleNames []string, access RoleGetter, traits map[string][]st
for _, roleName := range roleNames {
role, err := access.GetRole(context.TODO(), roleName)
if err != nil {
if trace.IsNotFound(err) {
continue
}
return nil, trace.Wrap(err)
}
role, err = ApplyTraits(role, traits)
Expand Down

0 comments on commit 753f0fe

Please sign in to comment.