ceph.in: return bytes as outbuf in error path

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-12-24 22:04:25 +08:00
parent 9220af325f
commit ea18b69e36

View File

@ -642,9 +642,9 @@ def new_style_command(parsed_args,
interactive_input = read_input()
except EOFError:
# leave user an uncluttered prompt
return 0, '\n', ''
return 0, b'\n', ''
if interactive_input is None:
return 0, '', ''
return 0, b'', ''
cmdargs = parse_cmdargs(shlex.split(interactive_input))[2]
try:
target = find_cmd_target(cmdargs)