Skip to content

Commit

Permalink
Remove explicit userID
Browse files Browse the repository at this point in the history
  • Loading branch information
dbason committed Feb 23, 2021
1 parent d2f200c commit 309141e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ func addProjectMemberRoles(ctx *cli.Context) error {

for _, role := range roles {
rtb := managementClient.ProjectRoleTemplateBinding{
ProjectID: projectID,
RoleTemplateID: role,
UserPrincipalID: member.ID,
ProjectID: projectID,
RoleTemplateID: role,
}
if member.PrincipalType == "user" {
rtb.UserPrincipalID = member.ID
Expand Down

0 comments on commit 309141e

Please sign in to comment.