Skip empty entries
This commit is contained in:
Родитель
e08fce9f44
Коммит
104da64917
|
@ -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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче