Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into users/krbar/apiMgmtModule
  • Loading branch information
krbar committed Dec 9, 2023
2 parents 1c7d815 + 9656139 commit 5198e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion avm/utilities/pipelines/sharedScripts/Set-ModuleReadMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ function Set-UsageExamplesSection {
$buildTestFileMap = [System.Collections.Concurrent.ConcurrentDictionary[string, object]]::new()
$testFilePaths | ForEach-Object -Parallel {
$folderName = Split-Path (Split-Path -Path $_) -Leaf
$buildTemplate = bicep build $_ --stdout | ConvertFrom-Json -AsHashtable
$buildTemplate = (bicep build $_ --stdout 2>$null) | ConvertFrom-Json -AsHashtable

$dict = $using:buildTestFileMap
$null = $dict.TryAdd($folderName, $buildTemplate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ foreach ($moduleFolderPath in $moduleFolderPaths) {
$builtTestFileMap = [System.Collections.Concurrent.ConcurrentDictionary[string, object]]::new()
$pathsToBuild | ForEach-Object -Parallel {
$dict = $using:builtTestFileMap
$builtTemplate = bicep build $_ --stdout | ConvertFrom-Json -AsHashtable
$builtTemplate = (bicep build $_ --stdout 2>$null) | ConvertFrom-Json -AsHashtable
$null = $dict.TryAdd($_, $builtTemplate)
}

Expand Down

0 comments on commit 5198e14

Please sign in to comment.