Fixed bug in device disenrollment

revert-70aa11f8
mharindu 9 years ago
parent 847eb073b9
commit 40feabb9df

@ -137,13 +137,6 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
DeviceManager dms =
this.getPluginRepository().getDeviceManagementProvider(deviceId.getType());
boolean status = dms.disenrollDevice(deviceId);
try {
int deviceID = Integer.parseInt(deviceId.getId());
this.getDeviceDAO().updateDeviceStatus(deviceID, Status.INACTIVE);
} catch (DeviceManagementDAOException e) {
throw new DeviceManagementException("Error occurred while modifying the device " +
"'" + deviceId.getId() + "'", e);
}
return status;
}

Loading…
Cancel
Save