Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefajers authored Mar 11, 2024
1 parent 7191fee commit c9d34b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/internal/functions/Remove-AzOpsDeployment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
if ($templateContent.metadata._generator.name -eq "AzOps" -or $templateContent.$schemavalue -like "*deploymentParameters.json#") {
Write-AzOpsMessage -LogLevel Verbose -LogString 'Remove-AzOpsDeployment.Metadata.AzOps' -LogStringValues $TemplateFilePath
}
elseif ($CustomTemplateResourceDeletion -eq $true) {
elseif ($true -eq $CustomTemplateResourceDeletion) {
Write-AzOpsMessage -LogLevel Verbose -LogString 'Remove-AzOpsDeployment.Metadata.Custom' -LogStringValues $TemplateFilePath
$customDeletion = $true
}
Expand Down Expand Up @@ -400,10 +400,10 @@
}
# If there are $resultsFileAssociation, combine them with existing results and log a warning
if ($resultsFileAssociation) {
$finallResults = @()
$finallResults += $resultsFileAssociation
$finallResults += $allResults
$allResults = $finallResults
$finalResults = @()
$finalResults += $resultsFileAssociation
$finalResults += $allResults
$allResults = $finalResults
Write-AzOpsMessage -LogLevel Warning -LogString 'Set-AzOpsWhatIfOutput.WhatIfResults' -LogStringValues $allResults
}
}
Expand Down

0 comments on commit c9d34b2

Please sign in to comment.