mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
ceph.in: return bytes as outbuf in error path
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
9220af325f
commit
ea18b69e36
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user