We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bed0d55 commit 1e6c85eCopy full SHA for 1e6c85e
1 file changed
eng/common/TestResources/build-test-resource-config.yml
@@ -47,10 +47,14 @@ steps:
47
48
if ($subConfigFilesRaw) {
49
$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
+ # Handle cases where $subConfigFilesRaw converts to an empty string
+ # instead of an array of strings
+ if ($subConfigFiles) {
+ 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
+ }
58
}
59
60
0 commit comments