This commit is contained in:
Daniel Jurek 2024-07-03 09:05:51 -07:00
Родитель e08fce9f44
Коммит 104da64917
1 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -45,13 +45,14 @@ steps:
${{ convertToJson(parameters.SubscriptionConfigurationFilePaths) }} ${{ convertToJson(parameters.SubscriptionConfigurationFilePaths) }}
'@.Trim() '@.Trim()
if ($subConfigFilesRaw) { $subConfigFiles = $subConfigFilesRaw | ConvertFrom-Json -AsHashtable
$subConfigFiles = $subConfigFilesRaw | ConvertFrom-Json -AsHashtable foreach ($file in $subConfigFiles) {
foreach ($file in $subConfigFiles) { if (!$file) {
Write-Host "Merging sub config from file: $file" continue
$subConfig = Get-Content $file | ConvertFrom-Json -AsHashtable
$finalConfig = UpdateSubscriptionConfiguration $finalConfig $subConfig
} }
Write-Host "Merging sub config from file: $file"
$subConfig = Get-Content $file | ConvertFrom-Json -AsHashtable
$finalConfig = UpdateSubscriptionConfiguration $finalConfig $subConfig
} }
Write-Host ($finalConfig | ConvertTo-Json) Write-Host ($finalConfig | ConvertTo-Json)