1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-29 10:55:05 +00:00

Fix result colour (#4885)

Signed-off-by: Anant Vijay <anantvijay3@gmail.com>

Signed-off-by: Anant Vijay <anantvijay3@gmail.com>
This commit is contained in:
XDRAGON2002 2022-10-12 02:06:31 +05:30 committed by GitHub
parent f7db09fcc2
commit f6cb33de95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1126,7 +1126,7 @@ func printTestResult(resps map[string]policyreportv1alpha2.PolicyReportResult, t
} else {
log.Log.V(2).Info("result mismatch", "expected", v.Result, "received", testRes.Result, "key", resultKey)
if !removeColor {
res.Result = boldGreen.Sprintf("Fail")
res.Result = boldRed.Sprintf("Fail")
} else {
res.Result = "Fail"
}