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:
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 {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue