fix: Stop incorrect any block condition logging
Previously the "no condition passed for 'any' block" would be logged for
all `any` blocks because the log line always occurs, even if conditions
are found.
@@ -53,8 +53,10 @@ func evaluateAnyAllConditions(log logr.Logger, ctx context.EvalInterface, condit
}
}
+ if !anyConditionsResult {
log.Info("no condition passed for 'any' block", "any", anyConditions)
}
+ }
// update the allConditionsResult if they are present
for _, condition := range allConditions {
