From: Kefu Chai Date: Sat, 5 Jun 2021 03:38:17 +0000 (+0800) Subject: pybind/ceph_daemon: do not handle get_command_descriptions in admin_socket() X-Git-Tag: v17.1.0~1729^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2d0d87dc9be5dc5bc5311c56a4858e8877c9b593;p=ceph.git pybind/ceph_daemon: do not handle get_command_descriptions in admin_socket() we never pass a single string to admin_socket() as its 2nd parameter. instead, we always pass a list of string. so no need to handle it as a special case. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index c86adc3ea616..c7f73552be28 100644 --- a/src/pybind/ceph_daemon.py +++ b/src/pybind/ceph_daemon.py @@ -71,9 +71,6 @@ def admin_socket(asok_path: str, except Exception as e: raise RuntimeError('exception getting command descriptions: ' + str(e)) - if cmd == 'get_command_descriptions': - return cmd_json - sigdict = parse_json_funcsigs(cmd_json.decode('utf-8'), 'cli') valid_dict = validate_command(sigdict, cmd) if not valid_dict: