]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: return bytes as outbuf in error path
authorKefu Chai <kchai@redhat.com>
Thu, 24 Dec 2020 14:04:25 +0000 (22:04 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Jan 2021 12:37:45 +0000 (20:37 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in

index c2a861bac1cfaad173cf63fe6329e6ddfac327d4..d0d4238c242bfd9f6940e08e42187f4f9e6f0e4b 100755 (executable)
@@ -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)