]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
task/workunit: clean up dir deletion
authorJohn Spray <jspray@redhat.com>
Fri, 18 Jul 2014 13:09:16 +0000 (14:09 +0100)
committerZack Cerza <zack@redhat.com>
Mon, 2 Nov 2015 18:13:39 +0000 (11:13 -0700)
commit879078fccc3ff684d9063be826b5fe1156283fb5
tree1f6c73d37497f9cf2dacb6213989647c9672c455
parentdc7ad16231e6e62496a869119728db9afc41163c
task/workunit: clean up dir deletion

This was always trying to remove the mountpoint,
and then swallowing the exception and printing
it to the log.

Instead:
 * Ensure it's only trying to delete mnt if it created it
 * Don't swallow those exceptions: if deleting the dirs
   fails then something has gone wrong and it should bubble
   up.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 396dc073cbea2c6282d2c9dcb6b1a36fd86a044d)
tasks/workunit.py