]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/ssh: clean up bare except: block
authorSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 19:30:56 +0000 (14:30 -0500)
committerSage Weil <sage@redhat.com>
Sat, 5 Oct 2019 19:28:50 +0000 (14:28 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/ssh/module.py

index 6d933261d5accd811f706aad1e7adb4b2bd7bc3e..5ec57dfd8510287ed0d06e6ce37da994a3aa8875 100644 (file)
@@ -135,8 +135,9 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator):
         try:
             with open(path, 'r') as f:
                 self._ceph_daemon = f.read()
-        except:
-            raise RuntimeError("unable to read ceph-daemon at '%s'" % path)
+        except IOError as e:
+            raise RuntimeError("unable to read ceph-daemon at '%s': %s" % (
+                path, str(e)))
 
         self._worker_pool = multiprocessing.pool.ThreadPool(1)