Skip to content

Commit 9007c2d

Browse files
committed
update removeroleassignment comparison to case insensitive
1 parent 718845f commit 9007c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/Resources/Commands.Resources/Models.Authorization/AuthorizationClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public IEnumerable<PSRoleAssignment> RemoveRoleAssignment(FilterRoleAssignmentsO
476476
// but an edge case can have multiple role assignments to the same role or multiple role assignments to different roles, with same name.
477477
// The FilterRoleAssignments takes care of paging internally
478478
IEnumerable<PSRoleAssignment> roleAssignments = FilterRoleAssignments(options, currentSubscription: subscriptionId)
479-
.Where(ra => ra.Scope == options.Scope.TrimEnd('/'));
479+
.Where(ra => ra.Scope.Equals(options.Scope.TrimEnd('/'), StringComparison.OrdinalIgnoreCase));
480480

481481
if (roleAssignments == null || !roleAssignments.Any())
482482
{

0 commit comments

Comments
 (0)