Skip to content

Commit

Permalink
Merge pull request #65 from anwather/patch-1
Browse files Browse the repository at this point in the history
Update Get-AssignmentDefinitions.ps1
  • Loading branch information
techlake authored Sep 6, 2022
2 parents 5453dc1 + 72aa8ba commit 38ae83e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Scripts/Helpers/Get-AssignmentDefinitions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ function Get-AssignmentDefinitions {
Write-Debug " parameters inherited $($inheritedParameters | ConvertTo-Json -Depth 100)"
Write-Debug " parameters at node $($addedParameters | ConvertTo-Json -Depth 100)"
foreach ($parameterName in $addedParameters.Keys) {
$parameterValue = Get-DeepClone $addedParameters.$parameterName -AsHashTable
if ($addedParameters.$parameterName -is [array]) {
$parameterValue = $addedParameters.$parameterName
}
else {
$parameterValue = Get-DeepClone $addedParameters.$parameterName -AsHashTable
}
if ($inheritedParameters.ContainsKey($parameterName)) {
$def.parameters[$parameterName] = $parameterValue
}
Expand Down

0 comments on commit 38ae83e

Please sign in to comment.