Fixed where alerts were generated for an SLA regardless of assessment success if it was the 1st assessment
@@ -64,7 +64,7 @@ public class JpaJcrServiceLevelAgreementChecker extends DefaultServiceLevelAgree
return (!assessment.getResult().equals(AssessmentResult.SUCCESS) && assessment.compareTo(previous) != 0);
} else {
- return true;
+ return !assessment.getResult().equals(AssessmentResult.SUCCESS);
}
});
} catch (Exception e) {
