From: Venky Shankar Date: Wed, 20 Nov 2019 09:11:10 +0000 (-0500) Subject: pybind / cephfs: remove static typing in LibCephFS.chown X-Git-Tag: v14.2.8~20^2~30^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0055fbdce22793a87599f1a16ff8f0d3ae0c43e8;p=ceph.git pybind / cephfs: remove static typing in LibCephFS.chown The routine does type checking anyway, plus, to be uniform with other APIs. Fixes: http://tracker.ceph.com/issues/42923 Signed-off-by: Venky Shankar (cherry picked from commit bbbfb44453f204286a8ff312349d42afde5fced6) --- diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx index 851f07b372e5..b63836427a9f 100644 --- a/src/pybind/cephfs/cephfs.pyx +++ b/src/pybind/cephfs/cephfs.pyx @@ -841,7 +841,7 @@ cdef class LibCephFS(object): if ret < 0: raise make_ex(ret, "error in chmod {}".format(path.decode('utf-8'))) - def chown(self, path, int uid, int gid): + def chown(self, path, uid, gid): """ Change directory ownership :param path: the path of the directory to change.