Skip to content

Commit

Permalink
Merge pull request microsoft#2128 from NikCharlebois/Fix-#1820
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois authored Jul 21, 2022
2 parents e5035c1 + c57883e commit 147cf9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# UNRELEASED

* EXOTransportRule
* Fixed issue where the MessageContainsDataClassifications property was not properly extracted due to single quote exiting.
FIXES [#1820](https://github.com/microsoft/Microsoft365DSC/issues/1820)
* IntuneDeviceConfigurationPolicyWindows10
* Fixed issue where the edgeSearchEngine value was not properly retrieved.
FIXES [#1783](https://github.com/microsoft/Microsoft365DSC/issues/1783)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,11 @@ function Get-TargetResource
}
else
{
$MessageContainsDataClassificationsValue = $null
if ($null -ne $TransportRule.MessageContainsDataClassifications)
{
$MessageContainsDataClassificationsValue = $TransportRule.MessageContainsDataClassifications.Replace('"', "'")
}
$result = @{
Name = $TransportRule.Name
ADComparisonAttribute = $TransportRule.ADComparisonAttribute
Expand Down Expand Up @@ -888,7 +893,7 @@ function Get-TargetResource
ManagerAddresses = $TransportRule.ManagerAddresses
ManagerForEvaluatedUser = $TransportRule.ManagerForEvaluatedUser
MessageContainsAllDataClassifications = $TransportRule.MessageContainsAllDataClassifications
MessageContainsDataClassifications = $TransportRule.MessageContainsDataClassifications
MessageContainsDataClassifications = $MessageContainsDataClassificationsValue
MessageSizeOver = $TransportRule.MessageSizeOver
MessageTypeMatches = $TransportRule.MessageTypeMatches
Mode = $TransportRule.Mode
Expand Down

0 comments on commit 147cf9d

Please sign in to comment.