1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

Fix violations "email sent to" log (#444)

Signed-off-by: cosimomeli <cosimomeli@users.noreply.github.com>
This commit is contained in:
cosimomeli 2024-06-08 12:12:03 +02:00 committed by GitHub
parent 9a906480e4
commit 8789eae171
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,7 +75,7 @@ func NewViolationsCMD() *cobra.Command {
return
}
logger.Sugar().Infof("email sent to %s\n", strings.Join(c.EmailReports.Summary.To, ", "))
logger.Sugar().Infof("email sent to %s\n", strings.Join(c.EmailReports.Violations.To, ", "))
}()
for _, ch := range c.EmailReports.Violations.Channels {