Fix enrolling exception in raspberry pi device type

application-manager-new
charithag 9 years ago
parent 9b6f1817f9
commit 3045bc068a

@ -79,6 +79,7 @@ public class RaspberrypiManagerService {
device.setName(name); device.setName(name);
device.setType(RaspberrypiConstants.DEVICE_TYPE); device.setType(RaspberrypiConstants.DEVICE_TYPE);
enrolmentInfo.setOwner(owner); enrolmentInfo.setOwner(owner);
device.setEnrolmentInfo(enrolmentInfo);
boolean added = deviceManagement.getDeviceManagementService().enrollDevice(device); boolean added = deviceManagement.getDeviceManagementService().enrollDevice(device);
if (added) { if (added) {
response.setStatus(Response.Status.OK.getStatusCode()); response.setStatus(Response.Status.OK.getStatusCode());

Loading…
Cancel
Save