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:
Sage Weil 2013-03-27 12:45:29 -07:00
parent 2ae297ccb8
commit 4362934a94

View File

@ -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(