Skip to content

Commit

Permalink
fix: typo in error message
Browse files Browse the repository at this point in the history
Co-authored-by: stephybun <[email protected]>
  • Loading branch information
Felix-Franz and stephybun authored Oct 1, 2024
1 parent ad87422 commit 0e2efe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/authorization/parse/role_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func RoleAssignmentID(input string) (*RoleAssignmentId, error) {
case strings.HasPrefix(input, "/providers/") && !strings.HasPrefix(input, "/providers/Microsoft.Authorization/roleAssignments"):
idParts := strings.Split(input, "/providers/Microsoft.Authorization/roleAssignments/")
if len(idParts) != 2 {
return nil, fmt.Errorf("could not parse Role Assignment ID %q for Ressource Provider", input)
return nil, fmt.Errorf("could not parse Role Assignment ID %q for Resource Provider", input)
}
if idParts[1] == "" {
return nil, fmt.Errorf("ID was missing a value for the roleAssignments element")
Expand Down

0 comments on commit 0e2efe6

Please sign in to comment.