Skip to content

Commit

Permalink
Fixes SCAutoSensitivityLabelRule - Setting error microsoft#4641
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Sep 18, 2024
1 parent b3897b0 commit 3181d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
* IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10
* Add missing `AccessTokens` parameter to `Export-TargetResource`
FIXES [#5034](https://github.com/microsoft/Microsoft365DSC/issues/5034)
* SCAutoSensitivityLabelRule
* Fixed issue with incorrectly applying HeaderMatchesPatterns, even when
parameter wasn't specified.
FIXES [#4641](https://github.com/microsoft/Microsoft365DSC/issues/4641)
* SCRoleGroup
* Fixes an issue with creation without specifying Displayname
* Fixes an issue with Drifts because of returned Role format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,9 @@ function Set-TargetResource

$CurrentRule = Get-TargetResource @PSBoundParameters

$HeaderMatchesPatternsValue = @{}
if ($null -ne $HeaderMatchesPatterns -and $null -ne $HeaderMatchesPatterns.Name)
{
$HeaderMatchesPatternsValue = @{}
$HeaderMatchesPatternsValue.Add($HeaderMatchesPatterns.Name, $HeaderMatchesPatterns.Values)
}
if (('Present' -eq $Ensure) -and ('Absent' -eq $CurrentRule.Ensure))
Expand Down

0 comments on commit 3181d64

Please sign in to comment.