Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefajers authored Jan 5, 2024
1 parent 0f44568 commit 6e3b5f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/functions/Invoke-AzOpsPush.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,10 @@
# Handle Bicep templates
if ($addition.EndsWith(".bicep")) {
$transpiledTemplatePaths = ConvertFrom-AzOpsBicepTemplate -BicepTemplatePath $addition -ConvertedTemplate $AzOpsTranspiledTemplate -ConvertedParameter $AzOpsTranspiledParameter
if ($transpiledTemplatePaths.transpiledTemplateNew -eq $true) {
if ($true -eq $transpiledTemplatePaths.transpiledTemplateNew) {
$AzOpsTranspiledTemplate += $transpiledTemplatePaths.transpiledTemplatePath
}
if ($transpiledTemplatePaths.transpiledParametersNew -eq $true) {
if ($true -eq $transpiledTemplatePaths.transpiledParametersNew) {
$AzOpsTranspiledParameter += $transpiledTemplatePaths.transpiledParametersPath
}
$addition = $transpiledTemplatePaths.transpiledTemplatePath
Expand All @@ -381,10 +381,10 @@

$resolvedArmFileAssociation = Resolve-ArmFileAssociation -ScopeObject $scopeObject -FilePath $addition -AzOpsMainTemplate $AzOpsMainTemplate -ConvertedTemplate $AzOpsTranspiledTemplate -ConvertedParameter $AzOpsTranspiledParameter
foreach ($fileAssociation in $resolvedArmFileAssociation) {
if ($fileAssociation.transpiledTemplateNew -eq $true) {
if ($true -eq $fileAssociation.transpiledTemplateNew) {
$AzOpsTranspiledTemplate += $fileAssociation.TemplateFilePath
}
if ($fileAssociation.transpiledParametersNew -eq $true) {
if ($true -eq $fileAssociation.transpiledParametersNew) {
$AzOpsTranspiledParameter += $fileAssociation.TemplateParameterFilePath
}
}
Expand Down

0 comments on commit 6e3b5f2

Please sign in to comment.