Merge pull request #78332 from qingsenLi/k8s-190525

fix klog format error
This commit is contained in:
Kubernetes Prow Robot
2019-05-29 09:44:51 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ func diskTearDown(manager diskManager, c rbdUnmounter, volPath string, mounter m
}
if notMnt {
if err := os.Remove(volPath); err != nil {
klog.V(2).Info("Error removing mountpoint ", volPath, ": ", err)
klog.V(2).Infof("Error removing mountpoint %s: %v", volPath, err)
return err
}
}

View File

@@ -621,7 +621,7 @@ func (util *RBDUtil) DeleteImage(p *rbdVolumeDeleter) error {
return fmt.Errorf("error %v, rbd output: %v", err, rbdOutput)
}
if found {
klog.Info("rbd is still being used ", p.rbdMounter.Image)
klog.Infof("rbd %s is still being used ", p.rbdMounter.Image)
return fmt.Errorf("rbd image %s/%s is still being used, rbd output: %v", p.rbdMounter.Pool, p.rbdMounter.Image, rbdOutput)
}
// rbd rm.