From: Kefu Chai Date: Sat, 26 Dec 2020 09:34:30 +0000 (+0800) Subject: pybind/mgr: keep the docstring of func wrapped by CLICheckNonemptyFileInput X-Git-Tag: v16.1.0~67^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc5c533c786e9fca4a76c57e60f9acb96d718a57;p=ceph.git pybind/mgr: keep the docstring of func wrapped by CLICheckNonemptyFileInput Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 66e3f4caf734..99ff3647f9b6 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -12,6 +12,7 @@ if TYPE_CHECKING: import logging import errno +import functools import json import threading from collections import defaultdict, namedtuple @@ -359,6 +360,7 @@ def CLIWriteCommand(prefix, args="", desc=""): def CLICheckNonemptyFileInput(func): + @functools.wraps(func) def check(*args, **kwargs): if not 'inbuf' in kwargs: return -errno.EINVAL, '', ERROR_MSG_NO_INPUT_FILE