Skip to content

Commit

Permalink
Merge pull request #1981 from microsoft/main
Browse files Browse the repository at this point in the history
Release v2 2-8-24
  • Loading branch information
dpaulson45 authored Feb 8, 2024
2 parents 000b39f + aeb6b6b commit bef4ae6
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -106,7 +106,11 @@ function Get-IISAuthenticationType {
# for this configuration type, clear flag doesn't appear to be used at all.
foreach ($appKey in $appHostConfigLocations) {
Write-Verbose "Working on appKey: $appKey"
$getIisAuthenticationType.Add($appKey, [string]::Empty)

if (-not ($getIisAuthenticationType.ContainsKey($appKey))) {
$getIisAuthenticationType.Add($appKey, [string]::Empty)
}

$currentKey = $appKey
$authentication = @()
$continue = $true
6 changes: 5 additions & 1 deletion Diagnostics/HealthChecker/Analyzer/Get-IPFilterSetting.ps1
Original file line number Diff line number Diff line change
@@ -16,7 +16,11 @@ function Get-IPFilterSetting {
process {
foreach ($appKey in $locationPaths) {
Write-Verbose "Working on appKey: $appKey"
$ipFilterSettings.Add($appKey, (New-Object System.Collections.Generic.List[object]))

if (-not ($ipFilterSettings.ContainsKey($appKey))) {
$ipFilterSettings.Add($appKey, (New-Object System.Collections.Generic.List[object]))
}

$currentKey = $appKey
$continue = $true

0 comments on commit bef4ae6

Please sign in to comment.