Skip to content

Commit

Permalink
Fix exemptions not being removed (#636)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Watherston <[email protected]>
  • Loading branch information
anwather and Anthony Watherston authored May 17, 2024
1 parent b7747af commit 1ffbb4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The following is the unique IDs (also known as PIDs) used in each of the modules
| `Export-NonComplianceReports` | `f464b017-898b-4156-9da5-af932831fa2f` |
| `Get-AzExemptions` | `3f02e7d5-1cf5-490a-a95c-3d49f0673093` |
| `New-AzPolicyReaderRole` | `f4b5b7ac-70b4-40fc-836f-585791aa83e7` |
| `Sync-ALZPolicies` | `pid-a5e82cd0-9dda-417b-948c-68ec81596c32`|
| `Sync-ALZPolicies` | `a5e82cd0-9dda-417b-948c-68ec81596c32`|

## Support

Expand Down
2 changes: 1 addition & 1 deletion Scripts/Helpers/Build-ExemptionsPlan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ function Build-ExemptionsPlan {
}
else {
$shallDelete = $false
$reason = "unknownOwner, strategy=owwnedOnly, status=$status"
$reason = "unknownOwner, strategy=ownedOnly, status=$status"
}
}
Default {
Expand Down
1 change: 1 addition & 0 deletions Scripts/Helpers/Get-GlobalSettings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ function Get-GlobalSettings {
if ($strategy -notin $valid) {
Add-ErrorMessage -ErrorInfo $errorInfo -ErrorString "Global settings error: pacEnvironment $pacSelector field desiredState.strategy ($strategy) must be one of $(ConvertTo-Json $valid -Compress)."
}
$desiredState.strategy = $strategy
}
$includeResourceGroups = $desired.includeResourceGroups
if ($null -ne $includeResourceGroups) {
Expand Down

0 comments on commit 1ffbb4a

Please sign in to comment.