File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,14 @@ steps:
4747
4848 if ($subConfigFilesRaw) {
4949 $subConfigFiles = $subConfigFilesRaw | ConvertFrom-Json -AsHashtable
50- foreach ($file in $subConfigFiles) {
51- Write-Host "Merging sub config from file: $file"
52- $subConfig = Get-Content $file | ConvertFrom-Json -AsHashtable
53- $finalConfig = UpdateSubscriptionConfiguration $finalConfig $subConfig
50+ # Handle cases where $subConfigFilesRaw converts to an empty string
51+ # instead of an array of strings
52+ if ($subConfigFiles) {
53+ foreach ($file in $subConfigFiles) {
54+ Write-Host "Merging sub config from file: $file"
55+ $subConfig = Get-Content $file | ConvertFrom-Json -AsHashtable
56+ $finalConfig = UpdateSubscriptionConfiguration $finalConfig $subConfig
57+ }
5458 }
5559 }
5660
You can’t perform that action at this time.
0 commit comments