]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/rados: enable construction with CephContext
authorJohn Spray <john.spray@redhat.com>
Sun, 5 Mar 2017 15:30:05 +0000 (10:30 -0500)
committerKefu Chai <kchai@redhat.com>
Wed, 3 May 2017 02:37:17 +0000 (10:37 +0800)
commitabd9f26793da35a667813827e936b037bd882ab6
tree2ed9707d98509cf2b9d52831bbe3229cf0667196
parent07cae6214b6c12e4b118f5142e90a37386b446b2
pybind/rados: enable construction with CephContext

The CephContext pointer is passed around inside
a Python capsule.  It would have initially been
created by some other (non-cython) bit of C++
code, such as ceph-mgr.

This enables mgr modules to instantiate librados
with all the same config/auth/id as the mgr daemon
that they are running within.  Useful if you
want to spin up e.g. a librbd instance.

Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/rados/rados.pyx