Skip to content

Commit

Permalink
fix: vap error logging for rego only templates
Browse files Browse the repository at this point in the history
Signed-off-by: martijnvdp <[email protected]>
  • Loading branch information
martijnvdp committed Aug 30, 2024
1 parent e3d056d commit 3ff7238
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func (r *ReconcileConstraintTemplate) Reconcile(ctx context.Context, request rec
return reconcile.Result{}, err
}
generateVap, err := constraint.ShouldGenerateVAP(unversionedCT)
if err != nil || !errors.Is(err, celSchema.ErrCodeNotDefined) {
if err != nil && !errors.Is(err, celSchema.ErrCodeNotDefined) {
logger.Error(err, "generateVap error")
}
logger.Info("generateVap", "r.generateVap", generateVap)
Expand Down

0 comments on commit 3ff7238

Please sign in to comment.