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>
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: