mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: event message for the image verify rule (#6734)
* debug Signed-off-by: ShutingZhao <shuting@nirmata.com> * debug Signed-off-by: ShutingZhao <shuting@nirmata.com> * debug Signed-off-by: ShutingZhao <shuting@nirmata.com> * debug Signed-off-by: ShutingZhao <shuting@nirmata.com> * fix Signed-off-by: ShutingZhao <shuting@nirmata.com> --------- Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
5155412089
commit
e2a8d9fa04
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ func buildPolicyEventMessage(resp *engineapi.RuleResponse, resource engineapi.Re
|
|||
fmt.Fprintf(&b, " (blocked)")
|
||||
}
|
||||
|
||||
if resp.Status == engineapi.RuleStatusError && resp.Message != "" {
|
||||
if resp.Message != "" {
|
||||
fmt.Fprintf(&b, "; %s", resp.Message)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue