mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
don't attempt to delete mountpoint if unmount failed
This commit is contained in:
parent
143003bcfd
commit
2f8931315a
@ -149,9 +149,9 @@ func unmountCephRoot(volID volumeID) {
|
|||||||
|
|
||||||
if err := unmountVolume(cephRoot); err != nil {
|
if err := unmountVolume(cephRoot); err != nil {
|
||||||
klog.Errorf("failed to unmount %s with error %s", cephRoot, err)
|
klog.Errorf("failed to unmount %s with error %s", cephRoot, err)
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if err := os.Remove(cephRoot); err != nil {
|
if err := os.Remove(cephRoot); err != nil {
|
||||||
klog.Errorf("failed to remove %s with error %s", cephRoot, err)
|
klog.Errorf("failed to remove %s with error %s", cephRoot, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user