Skip to content

Commit

Permalink
fix(activate): resolve incorrect role type variable
Browse files Browse the repository at this point in the history
  • Loading branch information
netr0m committed Oct 21, 2024
1 parent f4efd59 commit 6427280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/activate.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var activateEntraRoleCmd = &cobra.Command{
log.Printf("Skipping activation due to 'dry-run'.")
os.Exit(0)
}
requestResponse := pim.RequestGovernanceRoleAssignment(subjectId, pim.ROLE_TYPE_AAD_GROUPS, entraRoleAssignment, duration, reason, ticketSystem, ticketNumber, pimGovernanceRoleToken)
requestResponse := pim.RequestGovernanceRoleAssignment(subjectId, pim.ROLE_TYPE_ENTRA_ROLES, entraRoleAssignment, duration, reason, ticketSystem, ticketNumber, pimGovernanceRoleToken)
log.Printf("The role '%s' for Entra role '%s' is now %s", entraRoleAssignment.RoleDefinition.DisplayName, entraRoleAssignment.RoleDefinition.Resource.DisplayName, requestResponse.AssignmentState)
},
}
Expand Down

0 comments on commit 6427280

Please sign in to comment.