Skip to content

Commit

Permalink
bug 614 (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregslack78 authored May 3, 2024
1 parent 4966210 commit 25849ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Scripts/Helpers/Build-ScopeTableForManagementGroup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Build-ScopeTableForManagementGroup {
}
if (!$IsExcluded) {
# optimized
foreach ($globalExcludedScope in $PacEnvironment.globalExcludedScopesManagementGroups) {
foreach ($globalExcludedScope in $PacEnvironment.desiredState.globalExcludedScopesManagementGroups) {
if ($managementGroupId -like $globalExcludedScope) {
$IsExcluded = $true
break
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Helpers/Build-ScopeTableForSubscription.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Build-ScopeTableForSubscription {
}
if (!$IsExcluded) {
# optimized
foreach ($globalExcludedScope in $PacEnvironment.globalExcludedScopesSubscriptions) {
foreach ($globalExcludedScope in $PacEnvironment.desiredState.globalExcludedScopesSubscriptions) {
if ($subscriptionResourceId -like $globalExcludedScope) {
$IsExcluded = $true
break
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Helpers/Get-GlobalSettings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function Get-GlobalSettings {
$null = $globalExcludedScopesResourceGroupsList.Add($excludedScope)
}
else {
$null = $globalNotScopesSubscriptionsList.Add($excludedScope)
$null = $globalExcludedScopesSubscriptionsList.Add($excludedScope)
}
}
elseif ($excludedScope.StartsWith("/providers/Microsoft.Management/managementGroups/")) {
Expand Down

0 comments on commit 25849ea

Please sign in to comment.