]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerJos Collin <jcollin@redhat.com>
Mon, 9 Dec 2019 14:59:03 +0000 (20:29 +0530)
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>
(cherry picked from commit bbbfb44453f204286a8ff312349d42afde5fced6)

src/pybind/cephfs/cephfs.pyx

index 851f07b372e571f9a41f843cf880fe762e16fcce..b63836427a9fa22020e9c0c63d5d862484433f92 100644 (file)
@@ -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.