]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/mgr_module: correct docstring of MgrModule.get() 41742/head
author靳登科 <jindengke@inspur.com>
Tue, 8 Jun 2021 00:55:20 +0000 (08:55 +0800)
committer靳登科 <jindengke@inspur.com>
Tue, 8 Jun 2021 00:55:20 +0000 (08:55 +0800)
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>
src/pybind/mgr/mgr_module.py

index 0e73b0d879feba865c0b22f0be0d494e82b4c8d9..d358499f371a6ae5eb4d691c90a65ee644248b16 100644 (file)
@@ -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 <devid>, pg_stats,