]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: fix the cstr(auth_id, ..) call
authorKefu Chai <kchai@redhat.com>
Wed, 15 Feb 2017 06:11:10 +0000 (14:11 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Feb 2017 06:50:59 +0000 (14:50 +0800)
so cstr() prints the right error message if auth_id does not look right.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/cephfs/cephfs.pyx

index 12b084f9e23821ca73a90420d043d52217c39818..8d33033ae73438d7d08ad31c1c58470c15e1d488 100644 (file)
@@ -361,7 +361,7 @@ cdef class LibCephFS(object):
         if conf is not None and not isinstance(conf, dict):
             raise TypeError("conf must be dict or None")
         cstr(conffile, 'configfile', opt=True)
-        auth_id = cstr(auth_id, 'configfile', opt=True)
+        auth_id = cstr(auth_id, 'auth_id', opt=True)
 
         cdef:
             char* _auth_id = opt_str(auth_id)