Merge branch 'application-mgt-new' into 'application-mgt-new'

fix for corrective policy

See merge request entgra/carbon-device-mgt!354
feature/appm-store/pbac
Milan Perera 5 years ago
commit a9a99bb83d

@ -155,8 +155,8 @@ public class PolicyManagerUtil {
PolicyAdministratorPoint pap = new PolicyAdministratorPointImpl(); PolicyAdministratorPoint pap = new PolicyAdministratorPointImpl();
try { try {
Policy correctivePolicy = pap.getPolicy(correctiveAction.getPolicyId()); Policy correctivePolicy = pap.getPolicy(correctiveAction.getPolicyId());
if (correctivePolicy == null || PolicyManagementConstants.CORRECTIVE_POLICY_TYPE if (correctivePolicy == null || !PolicyManagementConstants.CORRECTIVE_POLICY_TYPE
.equalsIgnoreCase(correctivePolicy.getPolicyType())) { .equalsIgnoreCase(correctivePolicy.getPolicyType() )) {
String msg = "No corrective policy was found for the policy " + policy.getPolicyName() + String msg = "No corrective policy was found for the policy " + policy.getPolicyName() +
" and policy ID " + policy.getId(); " and policy ID " + policy.getId();
log.error(msg); log.error(msg);

Loading…
Cancel
Save