Skip to content

Commit 1879b57

Browse files
force arr
1 parent 0a17f7b commit 1879b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function Invoke-ExecStandardConvert {
162162

163163
if ($Tenant -eq 'AllTenants' -and $Excluded) {
164164
$ExcludedArr = $Excluded | ForEach-Object { $_ }
165-
$NewTemplate | Add-Member -NotePropertyName 'excludedTenants' -NotePropertyValue $ExcludedArr -Force
165+
$NewTemplate | Add-Member -NotePropertyName 'excludedTenants' -NotePropertyValue @($ExcludedArr) -Force
166166
}
167167

168168
return $NewTemplate

0 commit comments

Comments
 (0)