]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind / cephfs: remove static typing in LibCephFS.chown
authorVenky Shankar <vshankar@redhat.com>
Wed, 20 Nov 2019 09:11:10 +0000 (04:11 -0500)
committerVenky Shankar <vshankar@redhat.com>
Thu, 21 Nov 2019 04:23:09 +0000 (23:23 -0500)
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 <vshankar@redhat.com>
src/pybind/cephfs/cephfs.pyx

index 0a64fd52a240bf6c7ab3371b7bad56ad84389140..e80bd8a61abc15d8a0d3e7ceda3ded3f6b7f8494 100644 (file)
@@ -865,7 +865,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.