From 72b57b8f256b492607bf9ffba1b4a2a79fb25461 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 15 Feb 2017 14:11:10 +0800 Subject: [PATCH] pybind: fix the cstr(auth_id, ..) call so cstr() prints the right error message if auth_id does not look right. Signed-off-by: Kefu Chai --- src/pybind/cephfs/cephfs.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx index 12b084f9e2382..8d33033ae7343 100644 --- a/src/pybind/cephfs/cephfs.pyx +++ b/src/pybind/cephfs/cephfs.pyx @@ -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) -- 2.39.5