mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'application-mgt-new' into 'application-mgt-new'
fix for corrective policy See merge request entgra/carbon-device-mgt!354
This commit is contained in:
commit
a9a99bb83d
@ -155,8 +155,8 @@ public class PolicyManagerUtil {
|
||||
PolicyAdministratorPoint pap = new PolicyAdministratorPointImpl();
|
||||
try {
|
||||
Policy correctivePolicy = pap.getPolicy(correctiveAction.getPolicyId());
|
||||
if (correctivePolicy == null || PolicyManagementConstants.CORRECTIVE_POLICY_TYPE
|
||||
.equalsIgnoreCase(correctivePolicy.getPolicyType())) {
|
||||
if (correctivePolicy == null || !PolicyManagementConstants.CORRECTIVE_POLICY_TYPE
|
||||
.equalsIgnoreCase(correctivePolicy.getPolicyType() )) {
|
||||
String msg = "No corrective policy was found for the policy " + policy.getPolicyName() +
|
||||
" and policy ID " + policy.getId();
|
||||
log.error(msg);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user