Merge pull request #47717 from chentao1596/remove-extra-log-parameter

Automatic merge from submit-queue (batch tested with PRs 47717, 53896). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Delete the redundant parameter flag

What this PR does / why we need it:

  Delete redundant parameter flag, otherwise the log will be show like:

  Warning: path "/var/lib/kubelet/pods/3c6c4869-4d02-11e7-9685-fa163eeda0fa/volumes" does not exist: %!q(MISSING)

  thank you!
This commit is contained in:
Kubernetes Submit Queue 2017-10-18 11:52:03 -07:00 committed by GitHub
commit 09a42ba9e0

View File

@ -219,7 +219,7 @@ func (kl *Kubelet) getPodVolumePathListFromDisk(podUID types.UID) ([]string, err
if pathExists, pathErr := volumeutil.PathExists(podVolDir); pathErr != nil { if pathExists, pathErr := volumeutil.PathExists(podVolDir); pathErr != nil {
return volumes, fmt.Errorf("Error checking if path %q exists: %v", podVolDir, pathErr) return volumes, fmt.Errorf("Error checking if path %q exists: %v", podVolDir, pathErr)
} else if !pathExists { } else if !pathExists {
glog.Warningf("Warning: path %q does not exist: %q", podVolDir) glog.Warningf("Path %q does not exist", podVolDir)
return volumes, nil return volumes, nil
} }