We have noticed an inappropriate response for error reporting during the migration of lwm2m devices in one of our customer tenancy.
device count for migration success/failure is reported as null instead of actual count.
Customer attempted to migrate 2 devices(866416047975975 & 864700045057429) from connector device with below shell command.
migrateLwm2mDevices --devices 4660160670 4660158980
The above operation is failed with below response:
{
"message" : "Devices not found or already migrated",
"numberOfDevicesSuccessful" : null,
"numberOfDevicesFailed" : null,
"issues" : { }
}
Looking at the response -
"numberOfDevicesSuccessful" : null,
"numberOfDevicesFailed" : null,
"issues" : { }
Expected response:
"numberOfDevicesSuccessful" : 0
"numberOfDevicesFailed" : 2,
issues" : { } → possible reason for failure