Skip to content

Commit

Permalink
Fixes #11152: Reporting on old techniqe fail in audit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fanf committed Aug 9, 2017
1 parent 3afa124 commit 167206b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -676,7 +676,9 @@ object ExecutionBatch extends Loggable {
RunComplianceInfo.PolicyModeError.AgentAbortMessage(r.keyValue, r.message)
}.toSet
val mixed = ruleNodeStatusReports.collect { case r => r.directives.collect { case (_, d) if (d.compliance.badPolicyMode > 0) =>
RunComplianceInfo.PolicyModeError.TechniqueMixedMode(s"Error for node '${nodeId.value}' in directive '${d.directiveId.value}', other directives based on the same Technique have different Policy Mode")
RunComplianceInfo.PolicyModeError.TechniqueMixedMode(s"Error for node '${nodeId.value}' in directive '${d.directiveId.value}': either that directive is"+
" not sending the correct Policy Mode reports (for example Enforce reports in place of Audit one - does the directive's Technique is up-to-date?)"+
" or at least one other directive on that node based on the same Technique sends reports for a different Policy Mode")
}.toSet }.flatten

(abort ++ mixed).toList match {
Expand Down

0 comments on commit 167206b

Please sign in to comment.