]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_daemon: do not handle get_command_descriptions in admin_socket()
authorKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 03:38:17 +0000 (11:38 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 03:38:18 +0000 (11:38 +0800)
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 <kchai@redhat.com>
src/pybind/ceph_daemon.py

index c86adc3ea616b04241f46b7ffc7fcff6842af332..c7f73552be28399ea7d98a5d974357491ececc0a 100644 (file)
@@ -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: