We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7294918 commit e2e0cb6Copy full SHA for e2e0cb6
1 file changed
eng/common/TestResources/build-test-resource-config.yml
@@ -66,10 +66,14 @@ steps:
66
67
if ($subConfigFilesRaw) {
68
$subConfigFiles = $subConfigFilesRaw | ConvertFrom-Json -AsHashtable
69
- foreach ($file in $subConfigFiles) {
70
- Write-Host "Merging sub config from file: $file"
71
- $subConfig = Get-Content $file | ConvertFrom-Json -AsHashtable
72
- $finalConfig = UpdateSubscriptionConfiguration $finalConfig $subConfig
+ # Handle cases where $subConfigFilesRaw converts to an empty string
+ # instead of an array of strings
+ if ($subConfigFiles) {
+ foreach ($file in $subConfigFiles) {
73
+ Write-Host "Merging sub config from file: $file"
74
+ $subConfig = Get-Content $file | ConvertFrom-Json -AsHashtable
75
+ $finalConfig = UpdateSubscriptionConfiguration $finalConfig $subConfig
76
+ }
77
}
78
79
0 commit comments