Skip to content

Commit 750df28

Browse files
committed
fix: quotes
1 parent e4ec5d9 commit 750df28

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards/Push-CIPPStandardsList.ps1

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -249,28 +249,28 @@ function Push-CIPPStandardsList {
249249
Write-Information "Updating CIPPDB cache for Conditional Access policies for $TenantFilter"
250250
Set-CIPPDBCacheConditionalAccessPolicies -TenantFilter $TenantFilter
251251
} catch {
252-
Write-Warning "Failed to update CA cache for $TenantFilter : $($_.Exception.Message)'
252+
Write-Warning "Failed to update CA cache for $TenantFilter : $($_.Exception.Message)"
253253
}
254254
}
255255
}
256256

257-
Write-Host 'Returning $($ComputedStandards.Count) standards for tenant $TenantFilter after filtering."
258-
# Return filtered standards
259-
$FilteredStandards = $ComputedStandards.Values | ForEach-Object {
260-
[PSCustomObject]@{
261-
Tenant = $_.Tenant
262-
Standard = $_.Standard
263-
Settings = $_.Settings
264-
TemplateId = $_.TemplateId
265-
FunctionName = 'CIPPStandard'
266-
}
267-
}
268-
Write-Host "Sending back $($FilteredStandards.Count) standards: $($FilteredStandards | ConvertTo-Json -Depth 5 -Compress)"
269-
return @($FilteredStandards)
257+
Write-Host "Returning $($ComputedStandards.Count) standards for tenant $TenantFilter after filtering."
258+
# Return filtered standards
259+
$FilteredStandards = $ComputedStandards.Values | ForEach-Object {
260+
[PSCustomObject]@{
261+
Tenant = $_.Tenant
262+
Standard = $_.Standard
263+
Settings = $_.Settings
264+
TemplateId = $_.TemplateId
265+
FunctionName = 'CIPPStandard'
266+
}
267+
}
268+
Write-Host "Sending back $($FilteredStandards.Count) standards: $($FilteredStandards | ConvertTo-Json -Depth 5 -Compress)"
269+
return @($FilteredStandards)
270270

271-
} catch {
272-
Write-Warning "Error listing standards for $TenantFilter : $($_.Exception.Message)'
271+
} catch {
272+
Write-Warning "Error listing standards for $TenantFilter : $($_.Exception.Message)"
273273
return @()
274274
}
275275
}
276-
'
276+

0 commit comments

Comments
 (0)