]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: do not hide ceph-disk prepare stack trace
authorLoic Dachary <ldachary@redhat.com>
Sun, 20 Sep 2015 12:28:12 +0000 (14:28 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 22 Sep 2015 06:46:56 +0000 (08:46 +0200)
raise without an argument so the original stack trace is shown when
ceph-disk prepare fails.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk

index 104d4bc28465ced86e8af2a16e5ae0b671a3a6c3..e219d8a56679ce58b0135f0a3ea9acc9e3a3d1a8 100755 (executable)
@@ -1918,7 +1918,7 @@ def main_prepare(args):
                 if e2.errno != errno.ENOENT: # errno.ENOENT = no such file or directory
                     raise # re-raise exception if a different error occured
         prepare_lock.release()  # noqa
-        raise e
+        raise
 
 
 ###########################