mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixed bug in device disenrollment
This commit is contained in:
parent
847eb073b9
commit
40feabb9df
@ -137,13 +137,6 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
|
|||||||
DeviceManager dms =
|
DeviceManager dms =
|
||||||
this.getPluginRepository().getDeviceManagementProvider(deviceId.getType());
|
this.getPluginRepository().getDeviceManagementProvider(deviceId.getType());
|
||||||
boolean status = dms.disenrollDevice(deviceId);
|
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;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user