Skip to content

Commit

Permalink
Merge pull request #2102 from NikCharlebois/Fix-Issue-2096
Browse files Browse the repository at this point in the history
Fixes #2096
  • Loading branch information
NikCharlebois authored Jul 15, 2022
2 parents cf4e646 + 855bf86 commit aa0395b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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

* TeamsTenantDialPlan
* Fixed an issue where the Normalization Rules strings were not properly exited.
FIXES [#2096](https://github.com/microsoft/Microsoft365DSC/issues/2096)
* TeamsUpdateManagementPolicy
* Changed the format of the UpdateTimeOfDay parameter to not include date as part of an export.
FIXES [#2062](https://github.com/microsoft/Microsoft365DSC/issues/2062)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ function Get-M365DSCNormalizationRulesAsString
return $null
}
$currentProperty = "@("

foreach ($rule in $params)
{
$currentProperty += "MSFT_TeamsVoiceNormalizationRule{`r`n"
Expand All @@ -609,7 +609,12 @@ function Get-M365DSCNormalizationRulesAsString
}
else
{
$currentProperty += " " + $key + " = '" + $rule[$key] + "'`r`n"
$value = $rule[$key]
if (-not [System.String]::IsNullOrEmpty($value))
{
$value = $value.Replace("'", "''")
}
$currentProperty += " " + $key + " = '" + $value + "'`r`n"
}
}
$currentProperty += " }"
Expand Down

0 comments on commit aa0395b

Please sign in to comment.