Skip to content

Commit

Permalink
Fix case sensitivity (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
techlake authored Jan 23, 2024
1 parent cc761ab commit 5d437a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Helpers/Get-AssignmentsDetails.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Get-AssignmentsDetails {
}
$assignment = $allAssignments.$assignmentId
$policySetId = $assignment.properties.policyDefinitionId
if ($policySetId.Contains("policySetDefinition")) {
if ($policySetId.Contains("policySetDefinition", [StringComparison]::InvariantCultureIgnoreCase)) {
# PolicySet
if ($policySetsDetails.ContainsKey($policySetId)) {
$combinedDetail = Get-DeepClone $policySetsDetails.$policySetId -AsHashTable
Expand Down

0 comments on commit 5d437a4

Please sign in to comment.