From: Sage Weil Date: Sat, 22 May 2021 17:33:40 +0000 (-0400) Subject: pybind/mgr/mgr_module: fix help desc formatting X-Git-Tag: v17.1.0~1726^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4bc37ba3b53930589f2fcd3f137b45ea9872f9e6;p=ceph.git pybind/mgr/mgr_module: fix help desc formatting Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 42469fc9a61e..c89511dfc7d9 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -317,7 +317,7 @@ class CLICommand(object): @staticmethod def load_func_metadata(f: HandlerFuncType) -> Tuple[str, Dict[str, Any], int, str]: - desc = inspect.getdoc(f) or '' + desc = (inspect.getdoc(f) or '').replace('\n', ' ') full_argspec = inspect.getfullargspec(f) arg_spec = full_argspec.annotations first_default = len(arg_spec)