From: 靳登科 Date: Tue, 8 Jun 2021 00:55:20 +0000 (+0800) Subject: mgr/mgr_module: correct docstring of MgrModule.get() X-Git-Tag: v17.1.0~1720^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24ca308e101d7c13a47455e5bfc7c47ec23ff138;p=ceph.git mgr/mgr_module: correct docstring of MgrModule.get() In annotation, one of param of Mgr_module.get() is "osd_crush_map_text", but in PyObject *ActivePyModules::get_python and selftest, the param is "osdmap_crush_map_text", so update annotation from "osd_crush_map_text" to "osdmap_crush_map_text" Signed-off-by: lmgdlmgd <1105050771@qq.com> --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 0e73b0d879fe..d358499f371a 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1026,7 +1026,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): """ Called by the plugin to fetch named cluster-wide objects from ceph-mgr. - :param str data_name: Valid things to fetch are osd_crush_map_text, + :param str data_name: Valid things to fetch are osdmap_crush_map_text, osd_map, osd_map_tree, osd_map_crush, config, mon_map, fs_map, osd_metadata, pg_summary, io_rate, pg_dump, df, osd_stats, health, mon_status, devices, device , pg_stats,