File tree Expand file tree Collapse file tree
Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments