File tree Expand file tree Collapse file tree
Modules/CippExtensions/Public/Hudu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function Invoke-HuduExtensionSync {
6767 $PeopleLayout = Get-HuduAssetLayouts - Id $PeopleLayoutId
6868 if ($PeopleLayout.id ) {
6969 $PeopleArray = Get-HuduAssets - CompanyId $company_id - AssetLayoutId $PeopleLayout.id
70- $People = [System.Collections.Generic.List [object ]]::new($PeopleArray )
70+ $People = [System.Collections.Generic.List [object ]]::new([ object []] @ ( $PeopleArray ) )
7171 } else {
7272 $CreateUsers = $false
7373 $People = [System.Collections.Generic.List [object ]]::new()
@@ -92,7 +92,7 @@ function Invoke-HuduExtensionSync {
9292 $DesktopsLayout = Get-HuduAssetLayouts - Id $DeviceLayoutId
9393 if ($DesktopsLayout.id ) {
9494 $HuduDesktopDevices = Get-HuduAssets - CompanyId $company_id - AssetLayoutId $DesktopsLayout.id
95- $HuduDevices = [System.Collections.Generic.List [object ]]::new($HuduDesktopDevices )
95+ $HuduDevices = [System.Collections.Generic.List [object ]]::new([ object []] @ ( $HuduDesktopDevices ) )
9696 } else {
9797 $CreateDevices = $false
9898 $HuduDevices = [System.Collections.Generic.List [object ]]::new()
You can’t perform that action at this time.
0 commit comments