]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/restful: use list to pass hooks to create a `Pecan` instance
authorKefu Chai <kchai@redhat.com>
Tue, 13 Jun 2017 02:37:49 +0000 (10:37 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Jun 2017 02:11:01 +0000 (10:11 +0800)
commit3f007d935c57b2aea1221761f19ffda249337131
treed4360c1aa18767ed68c8af9ba7c018b12349ada9
parent3ace41f8d218b23c40cb871e229f08e5db8d5f68
pybind/mgr/restful: use list to pass hooks to create a `Pecan` instance

pecan 0.3.2 introduced the new way to pass the hooks to construct a
Pecan instance, but the "callable" builder for hooks is not compatible
with pecan < 0.3.2. and ubuntu trusty ships pecan 0.3.0, so we need to
do this the old way: pass a list of hooks instead of a callable.

see https://github.com/pecan/pecan/blame/0.3.2/pecan/core.py and
https://github.com/pecan/pecan/commit/fb2cf166aaf5b5af461879ec5b7a46806e8aee45

Fixes: http://tracker.ceph.com/issues/20258
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/restful/module.py