fix deleteVolume
`ok` is not in same variable socpe
This commit is contained in:
@@ -303,7 +303,7 @@ func (ctrl *PersistentVolumeController) deleteVolume(obj interface{}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ok || volume == nil || volume.Spec.ClaimRef == nil {
|
if volume == nil || volume.Spec.ClaimRef == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user