Skip to content

Commit

Permalink
Update Build-AssignmentDefinitionAtLeaf.ps1 (#501)
Browse files Browse the repository at this point in the history
Rename $name to $resourceSelectorName so it will not interfere with the assignment name

Co-authored-by: Heinrich Gantenbein <[email protected]>
  • Loading branch information
mbrousseaufx and techlake authored Mar 11, 2024
1 parent 154ad5f commit 2fbb56f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/Helpers/Build-AssignmentDefinitionAtLeaf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ function Build-AssignmentDefinitionAtLeaf {
}
}
if ($belongsToThisDefinitionEntry) {
$name = $resourceSelector.name
$resourceSelectorName = $resourceSelector.name
$selectors = $resourceSelector.selectors
if ($null -ne $name -and $null -ne $selectors) {
if ($null -ne $resourceSelectorName -and $null -ne $selectors) {
$resourceSelectorFinal = @{
name = $name
name = $resourceSelectorName
selectors = $selectors
}
$null = $resourceSelectorsList.Add($resourceSelectorFinal)
Expand Down

0 comments on commit 2fbb56f

Please sign in to comment.