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,7 +155,7 @@ public class PolicyManagerUtil {
PolicyAdministratorPoint pap = new PolicyAdministratorPointImpl();
try {
Policy correctivePolicy = pap.getPolicy(correctiveAction.getPolicyId());
if (correctivePolicy == null || PolicyManagementConstants.CORRECTIVE_POLICY_TYPE
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();

Loading…
Cancel
Save