We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c8694 commit 7918d54Copy full SHA for 7918d54
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-listStandardTemplates.ps1
@@ -1,6 +1,6 @@
1
using namespace System.Net
2
3
-Function Invoke-listStandardTemplates {
+function Invoke-listStandardTemplates {
4
<#
5
.FUNCTIONALITY
6
Entrypoint,AnyTenant
@@ -29,7 +29,11 @@ Function Invoke-listStandardTemplates {
29
return
30
}
31
$Data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.GUID -Force
32
- if ($Data.excludedTenants) { $Data.excludedTenants = @($Data.excludedTenants) }
+ if ($Data.excludedTenants -and $Data.excludedTenants -ne 'excludedTenants') {
33
+ $Data.excludedTenants = @($Data.excludedTenants)
34
+ } else {
35
+ $Data.excludedTenants = @()
36
+ }
37
$Data
38
} | Sort-Object -Property templateName
39
0 commit comments