Skip to content

Commit

Permalink
Merge pull request #2135 from NikCharlebois/Fix-#2067
Browse files Browse the repository at this point in the history
Fix #2067
  • Loading branch information
NikCharlebois authored Jul 22, 2022
2 parents 19078d2 + a0b187f commit fe72d77
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* IntuneDeviceConfigurationPolicyWindows10
* Fixed issue where the edgeSearchEngine value was not properly retrieved.
FIXES [#1783](https://github.com/microsoft/Microsoft365DSC/issues/1783)
* SCSensitivityLabel
* Fixed an issue where '$' in the custom wordmark test would cause issue.
FIXES [#2067](https://github.com/microsoft/Microsoft365DSC/issues/2067)
* SPOSite
* Fixed owner value for root site.
FIXES [#2035](https://github.com/microsoft/Microsoft365DSC/issues/2035)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,25 @@ function Get-TargetResource
$EncryptionRightsDefinitionsValue = Convert-EncryptionRightDefinition -RightsDefinition $label.EncryptionRightsDefinitions
}
Write-Verbose "Found existing Sensitivity Label $($Name)"

$ApplyContentMarkingFooterTextValue = $null
if ($null -ne $label.ApplyContentMarkingFooterText)
{
$ApplyContentMarkingFooterTextValue = $label.ApplyContentMarkingFooterText.Replace('$', '`$')
}

$ApplyContentMarkingHeaderTextValue = $null
if ($null -ne $label.ApplyContentMarkingHeaderText)
{
$ApplyContentMarkingHeaderTextValue = $label.ApplyContentMarkingHeaderText.Replace('$', '`$')
}

$ApplyWaterMarkingTextValue = $null
if ($null -ne $label.ApplyWaterMarkingText)
{
$ApplyWaterMarkingTextValue = $label.ApplyWaterMarkingText.Replace('$', '`$')
}

$result = @{
Name = $label.Name
Comment = $label.Comment
Expand All @@ -282,20 +301,20 @@ function Get-TargetResource
ApplyContentMarkingFooterFontName = $label.ApplyContentMarkingFooterFontName
ApplyContentMarkingFooterFontSize = $label.ApplyContentMarkingFooterFontSize
ApplyContentMarkingFooterMargin = $label.ApplyContentMarkingFooterMargin
ApplyContentMarkingFooterText = $label.ApplyContentMarkingFooterText
ApplyContentMarkingFooterText = $ApplyContentMarkingFooterTextValue
ApplyContentMarkingHeaderAlignment = $label.ApplyContentMarkingHeaderAlignment
ApplyContentMarkingHeaderEnabled = $label.ApplyContentMarkingHeaderEnabled
ApplyContentMarkingHeaderFontColor = $label.ApplyContentMarkingHeaderFontColor
ApplyContentMarkingHeaderFontName = $label.ApplyContentMarkingHeaderFontName
ApplyContentMarkingHeaderFontSize = $label.ApplyContentMarkingHeaderFontSize
ApplyContentMarkingHeaderMargin = $label.ApplyContentMarkingHeaderMargin
ApplyContentMarkingHeaderText = $label.ApplyContentMarkingHeaderText
ApplyContentMarkingHeaderText = $ApplyContentMarkingHeaderTextValue
ApplyWaterMarkingEnabled = $label.ApplyWaterMarkingEnabled
ApplyWaterMarkingFontColor = $label.ApplyWaterMarkingFontColor
ApplyWaterMarkingFontName = $label.ApplyWaterMarkingFontName
ApplyWaterMarkingFontSize = $label.ApplyWaterMarkingFontSize
ApplyWaterMarkingLayout = $label.ApplyWaterMarkingLayout
ApplyWaterMarkingText = $label.ApplyWaterMarkingText
ApplyWaterMarkingText = $ApplyWaterMarkingTextValue
EncryptionAipTemplateScopes = $label.EncryptionAipTemplateScopes
EncryptionContentExpiredOnDateInDaysOrNever = $label.EncryptionContentExpiredOnDateInDaysOrNever
EncryptionDoNotForward = $label.EncryptionDoNotForward
Expand Down

0 comments on commit fe72d77

Please sign in to comment.