mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #56658 from wenjun93/master
Automatic merge from submit-queue (batch tested with PRs 56480, 56675, 56624, 56648, 56658). 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>. minor fix error typo of rbd volume teardown fix typo in rbd volume plugin `diskTearDown`
This commit is contained in:
commit
88ae1ef52b
@ -115,9 +115,9 @@ func diskTearDown(manager diskManager, c rbdUnmounter, volPath string, mounter m
|
|||||||
}
|
}
|
||||||
|
|
||||||
notMnt, mntErr := mounter.IsLikelyNotMountPoint(volPath)
|
notMnt, mntErr := mounter.IsLikelyNotMountPoint(volPath)
|
||||||
if err != nil && !os.IsNotExist(err) {
|
if mntErr != nil && !os.IsNotExist(mntErr) {
|
||||||
glog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)
|
glog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)
|
||||||
return err
|
return mntErr
|
||||||
}
|
}
|
||||||
if notMnt {
|
if notMnt {
|
||||||
if err := os.Remove(volPath); err != nil {
|
if err := os.Remove(volPath); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user