mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
fix error typo of rbd volume teardown
This commit is contained in:
parent
60cd280064
commit
81918177d9
@ -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