Skip to content

Commit

Permalink
fix: vap error logging for rego only templates (#3520)
Browse files Browse the repository at this point in the history
Signed-off-by: martijnvdp <[email protected]>
Co-authored-by: Jaydipkumar Arvindbhai Gabani <[email protected]>
  • Loading branch information
martijnvdp and JaydipGabani authored Sep 4, 2024
1 parent 96e15bb commit 7429d70
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 7429d70

Please sign in to comment.