]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/mgr_module: preserve the signature of wrapped func
authorKefu Chai <kchai@redhat.com>
Wed, 13 Jan 2021 11:28:48 +0000 (19:28 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Jan 2021 01:50:53 +0000 (09:50 +0800)
commitb4c3801e9d6d4a97a85637a0b18fd782ae0ba9ed
tree09cbe0f2842dfabb6aa443602dc9b10aa1aa59d1
parent243c78734d8dc061154ea191f95f551f99690f95
pybind/mgr/mgr_module: preserve the signature of wrapped func

before this change, the annotations of the func wrapped by
CLICheckNonemptyFileInput and returns_command_result are lost after being
wrapped with this decorator. after this change, the parameter annotations
are preserved. these annotations are used for generating the argdesc in a
later commit.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/mgr_module.py