err is nil,remove it

This commit is contained in:
lojies 2016-09-08 18:30:09 +08:00
parent 7a4d81ea43
commit e4697fc7e3

View File

@ -143,7 +143,7 @@ func (kl *Kubelet) cleanupOrphanedPodDirs(
// If volumes have not been unmounted/detached, do not delete directory. // If volumes have not been unmounted/detached, do not delete directory.
// Doing so may result in corruption of data. // Doing so may result in corruption of data.
if podVolumesExist := kl.podVolumesExist(uid); podVolumesExist { if podVolumesExist := kl.podVolumesExist(uid); podVolumesExist {
glog.V(3).Infof("Orphaned pod %q found, but volumes are not cleaned up; err: %v", uid, err) glog.V(3).Infof("Orphaned pod %q found, but volumes are not cleaned up", uid)
continue continue
} }
// Check whether volume is still mounted on disk. If so, do not delete directory // Check whether volume is still mounted on disk. If so, do not delete directory