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 @@ -772,6 +772,9 @@ function Invoke-HuduExtensionSync {
772772 $HuduDevice = $HuduDevices | Where-Object { $_.name -eq $device.deviceName -or ($_.cards.integrator_name -eq ' cw_manage' -and $_.cards.data.name -contains $device.deviceName ) }
773773 } else {
774774 $HuduDevice = $HuduDevices | Where-Object { $_.primary_serial -eq $device.serialNumber -or ($_.cards.integrator_name -eq ' cw_manage' -and $_.cards.data.serialNumber -eq $device.serialNumber ) }
775+ if (! $HuduDevice ) {
776+ $HuduDevice = $HuduDevices | Where-Object { $_.name -eq $device.deviceName -or ($_.cards.integrator_name -eq ' cw_manage' -and $_.cards.data.name -contains $device.deviceName ) }
777+ }
775778 }
776779
777780 [System.Collections.Generic.List [PSCustomObject ]]$DeviceLinksFormatted = @ ()
You can’t perform that action at this time.
0 commit comments