mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix error param
This commit is contained in:
parent
1a7b92f001
commit
5d228d9586
1 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ func (pc *PolicyController) addPolicyViolation(obj interface{}) {
|
|||
// there is no cluster policy for this violation, so we can delete this cluster policy violation
|
||||
glog.V(4).Infof("PolicyViolation %s does not belong to an active policy, will be cleanedup", pv.Name)
|
||||
if err := pc.pvControl.DeletePolicyViolation(pv.Name); err != nil {
|
||||
glog.Error("Failed to deleted policy violation %s: %v", pv.Name, err)
|
||||
glog.Errorf("Failed to deleted policy violation %s: %v", pv.Name, err)
|
||||
return
|
||||
}
|
||||
glog.V(4).Infof("PolicyViolation %s deleted", pv.Name)
|
||||
|
@ -257,7 +257,7 @@ func (pc *PolicyController) updatePolicyViolation(old, cur interface{}) {
|
|||
// there is no cluster policy for this violation, so we can delete this cluster policy violation
|
||||
glog.V(4).Infof("PolicyViolation %s does not belong to an active policy, will be cleanedup", curPV.Name)
|
||||
if err := pc.pvControl.DeletePolicyViolation(curPV.Name); err != nil {
|
||||
glog.Error("Failed to deleted policy violation %s: %v", curPV.Name, err)
|
||||
glog.Errorf("Failed to deleted policy violation %s: %v", curPV.Name, err)
|
||||
return
|
||||
}
|
||||
glog.V(4).Infof("PolicyViolation %s deleted", curPV.Name)
|
||||
|
|
Loading…
Add table
Reference in a new issue