]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind: add return note in rbd.pyx
authorzhengyin <zhengyin@huayun.com>
Wed, 2 May 2018 07:16:21 +0000 (15:16 +0800)
committerzhengyin <zhengyin@huayun.com>
Wed, 2 May 2018 07:16:21 +0000 (15:16 +0800)
Signed-off-by: Zheng Yin <zhengyin@huayun.com>
src/pybind/rbd/rbd.pyx

index 8a02cf6f01d1b7745d59e968fbbe7511f4307de2..c9ded308be76d66ed17f46f3158d018dae6ca8b7 100644 (file)
@@ -2081,7 +2081,7 @@ cdef class Image(object):
         Get the size of the image. If open to a snapshot, returns the
         size of that snapshot.
 
-        :returns: the size of the image in bytes
+        :returns: int - the size of the image in bytes
         """
         cdef uint64_t image_size
         with nogil:
@@ -2462,6 +2462,8 @@ cdef class Image(object):
     def get_snap_limit(self):
         """
         Get the snapshot limit for an image.
+
+        :returns: int - the snapshot limit for an image
         """
 
         cdef:
@@ -2491,6 +2493,7 @@ cdef class Image(object):
         """
         Get the snapshot timestamp for an image.
         :param snap_id: the snapshot id of a snap shot
+        :returns: datetime - the snapshot timestamp for an image
         """
         cdef:
             timespec timestamp