]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: correct annotation for BasePyOSDMap._apply_incremental()
authorKefu Chai <kchai@redhat.com>
Tue, 19 Jan 2021 06:49:07 +0000 (14:49 +0800)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 29 Jan 2021 12:42:38 +0000 (13:42 +0100)
commitbe5fc929bcf5c5d55665d12caa7401edfa69e935
treeef01cef8356a4dbe17da060b8eccb0c7fc7e38cd
parent8c2f0b2a3d93aa5a78c265735cd763fe99985d86
pybind/mgr: correct annotation for BasePyOSDMap._apply_incremental()

it's incorrect. as the underlying C implementation,
"osdmap_apply_incremental()", actually expects an instance of
`BasePyOSDMapIncrementalType`. which is mapped to
`BasePyOSDMapIncremental` in Python. and this class is wrapped using
`OSDMapIncremental` in mgr_module.py.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 7b2dd7eba4422338acd5e6d8e24f88114f8694e6)
src/pybind/mgr/ceph_module.pyi