mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix(webhook): error variable (#11225)
Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
This commit is contained in:
parent
0f28d4e003
commit
e3b51e16a9
1 changed files with 2 additions and 2 deletions
|
@ -608,7 +608,7 @@ func (c *controller) updatePolicyStatuses(ctx context.Context) error {
|
|||
)
|
||||
})
|
||||
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
|
||||
}
|
||||
}
|
||||
|
@ -643,7 +643,7 @@ func (c *controller) updatePolicyStatuses(ctx context.Context) error {
|
|||
)
|
||||
})
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue