Skip to content

Commit 131fe26

Browse files
authored
Merge pull request #1478 from KelvinTegelaar/dev
Update Invoke-listStandardTemplates.ps1
2 parents fa4f0e5 + 6f5b875 commit 131fe26

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)