mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
ceph-disk: conditionally remove mount path
umount removes it on success; only remove it here if it is still there. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
2ae297ccb8
commit
4362934a94
@ -1380,8 +1380,9 @@ def mount_activate(
|
||||
unmount(path)
|
||||
raise
|
||||
finally:
|
||||
# remove out temp dir
|
||||
os.rmdir(path)
|
||||
# remove our temp dir
|
||||
if os.path.exists(path):
|
||||
os.rmdir(path)
|
||||
|
||||
|
||||
def activate_dir(
|
||||
|
Loading…
Reference in New Issue
Block a user