]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd.py: check for new librbd methods before use
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 11 Dec 2012 06:34:05 +0000 (22:34 -0800)
committerSage Weil <sage@inktank.com>
Fri, 14 Dec 2012 01:43:23 +0000 (17:43 -0800)
commit8cf367cb79046b08cc593b14f77526eef2758ee6
tree8d36b6ac673b9594c1de94b1cf3d22fbc7e665e8
parentc9894ff0e5782e43d5efa457d5bff5a9b2312274
rbd.py: check for new librbd methods before use

This way attempting to use format 2 images works when you upgrade the
python bindings before librbd, and attempting to use functions
that librbd does not have results in more understandable errors.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/pybind/rbd.py