Skip to content

Commit 35f7af5

Browse files
Fixed
1 parent 368d857 commit 35f7af5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardExConnector.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Invoke-CIPPStandardExConnector {
1+
function Invoke-CIPPStandardExchangeConnectorTemplate {
22
<#
33
.FUNCTIONALITY
44
Internal
@@ -12,15 +12,15 @@ function Invoke-CIPPStandardExConnector {
1212
} #we're done.
1313
##$Rerun -Type Standard -Tenant $Tenant -Settings $Settings 'ExConnector'
1414

15-
If ($Settings.remediate -eq $true) {
15+
if ($Settings.remediate -eq $true) {
1616

1717
foreach ($Template in $Settings.TemplateList) {
1818
try {
1919
$Table = Get-CippTable -tablename 'templates'
2020
$Filter = "PartitionKey eq 'ExConnectorTemplate' and RowKey eq '$($Template.value)'"
2121
$connectorType = (Get-AzDataTableEntity @Table -Filter $Filter).direction
2222
$RequestParams = (Get-AzDataTableEntity @Table -Filter $Filter).JSON | ConvertFrom-Json
23-
if($RequestParams.comment) { $RequestParams.comment = Get-CIPPTextReplacement -Text $RequestParams.comment -TenantFilter $Tenant } else { $RequestParams | Add-Member -NotePropertyValue "no comment" -NotePropertyName comment -Force }
23+
if ($RequestParams.comment) { $RequestParams.comment = Get-CIPPTextReplacement -Text $RequestParams.comment -TenantFilter $Tenant } else { $RequestParams | Add-Member -NotePropertyValue 'no comment' -NotePropertyName comment -Force }
2424
$Existing = New-ExoRequest -ErrorAction SilentlyContinue -tenantid $Tenant -cmdlet "Get-$($ConnectorType)connector" | Where-Object -Property Identity -EQ $RequestParams.name
2525
if ($Existing) {
2626
$RequestParams | Add-Member -NotePropertyValue $Existing.Identity -NotePropertyName Identity -Force

0 commit comments

Comments
 (0)