Skip to content

Commit

Permalink
fix ap-waf flag in error message (#5350)
Browse files Browse the repository at this point in the history
  • Loading branch information
vepatel authored Apr 4, 2024
1 parent 3e089b1 commit 6d771f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/configuration/validation/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func validatePolicySpec(spec *v1.PolicySpec, fieldPath *field.Path, isPlus, enab
}
if !enableAppProtect {
allErrs = append(allErrs, field.Forbidden(fieldPath.Child("waf"),
"App Protect must be enabled via cli argument -enable-appprotect to use WAF policy"))
"App Protect must be enabled via cli argument -enable-app-protect to use WAF policy"))
}

allErrs = append(allErrs, validateWAF(spec.WAF, fieldPath.Child("waf"))...)
Expand Down

0 comments on commit 6d771f3

Please sign in to comment.