1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-15 12:17:56 +00:00

fix(webhook): error variable (#11225)

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
This commit is contained in:
Khaled Emara 2024-09-25 12:41:17 +03:00 committed by GitHub
parent 0f28d4e003
commit e3b51e16a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -608,7 +608,7 @@ func (c *controller) updatePolicyStatuses(ctx context.Context) error {
) )
}) })
if retryErr != nil { if retryErr != nil {
logger.Error(err, "failed to update clusterpolicy status", "policy", policy.GetName()) logger.Error(retryErr, "failed to update clusterpolicy status", "policy", policy.GetName())
continue continue
} }
} }
@ -643,7 +643,7 @@ func (c *controller) updatePolicyStatuses(ctx context.Context) error {
) )
}) })
if retryErr != nil { if retryErr != nil {
logger.Error(err, "failed to update policy status", "namespace", policy.GetNamespace(), "policy", policy.GetName()) logger.Error(retryErr, "failed to update policy status", "namespace", policy.GetNamespace(), "policy", policy.GetName())
continue continue
} }
} }