From: Kefu Chai Date: Thu, 24 Dec 2020 14:04:25 +0000 (+0800) Subject: ceph.in: return bytes as outbuf in error path X-Git-Tag: v16.1.0~133^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea18b69e364aaedd23b99f5777137fabb1b7805f;p=ceph.git ceph.in: return bytes as outbuf in error path Signed-off-by: Kefu Chai --- diff --git a/src/ceph.in b/src/ceph.in index c2a861bac1cf..d0d4238c242b 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -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)