]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind: fix error handling on getxattr
authorJohn Spray <john.spray@redhat.com>
Mon, 29 Feb 2016 10:26:22 +0000 (10:26 +0000)
committerMehdi Abaakouk <sileht@redhat.com>
Mon, 29 Feb 2016 10:36:40 +0000 (11:36 +0100)
commit7f03c0e5b2b4da3e4c1534eefbedede3ce51de26
tree59a6895a2c633b44cba15f786d703d0a6d6a842b
parent10f125f765ccd2a32254150e49b77e1f4157f936
pybind: fix error handling on getxattr

The ctypes bindings returned empty string
instead of raising exception.  This was a bug,
because it made it impossible to detect the
difference between missing xattr and empty
xattr.

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