]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
restful: Use pecan hook instead of catch decorator
authorBoris Ranto <branto@redhat.com>
Thu, 18 May 2017 17:27:55 +0000 (19:27 +0200)
committerBoris Ranto <branto@redhat.com>
Mon, 22 May 2017 17:21:28 +0000 (19:21 +0200)
commit48ba07ac5c8b634e866b8370c377eccf7d9505ff
treee457f33651d042660b8e2a99e2a9cdf49f46f1e4
parent32dafc8591096b2fdedde72a1a11a037f6b81af4
restful: Use pecan hook instead of catch decorator

This removes the catch decorator which was useful primarily for testing
purposes and instead switches to a pecan error hook which will print the
traceback to the ceph-mgr log.

Signed-off-by: Boris Ranto <branto@redhat.com>
12 files changed:
src/pybind/mgr/restful/api/__init__.py
src/pybind/mgr/restful/api/config.py
src/pybind/mgr/restful/api/crush.py
src/pybind/mgr/restful/api/doc.py
src/pybind/mgr/restful/api/mon.py
src/pybind/mgr/restful/api/osd.py
src/pybind/mgr/restful/api/pool.py
src/pybind/mgr/restful/api/request.py
src/pybind/mgr/restful/api/server.py
src/pybind/mgr/restful/decorators.py
src/pybind/mgr/restful/hooks.py [new file with mode: 0644]
src/pybind/mgr/restful/module.py