Skip to content

Commit 6f5b875

Browse files
committed
Update Invoke-listStandardTemplates.ps1
1 parent 051c3ba commit 6f5b875

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-listStandardTemplates.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ function Invoke-listStandardTemplates {
2929
return
3030
}
3131
$Data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.GUID -Force
32+
33+
if (!$Data.excludedTenants) {
34+
$Data | Add-Member -NotePropertyName 'excludedTenants' -NotePropertyValue @() -Force
35+
}
36+
3237
if ($Data.excludedTenants -and $Data.excludedTenants -ne 'excludedTenants') {
3338
$Data.excludedTenants = @($Data.excludedTenants)
3439
} else {

0 commit comments

Comments
 (0)