]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: print decoded output in interactive mode 33099/head
authorJun Su <howard0su@gmail.com>
Thu, 6 Feb 2020 06:34:43 +0000 (14:34 +0800)
committerJun Su <howard0su@gmail.com>
Thu, 6 Feb 2020 08:05:34 +0000 (16:05 +0800)
Under ceph CLI interactive mode, the outbuf is
not decoded as utf-8 which causes the output
is not properly formatted.

Signed-off-by: Jun Su <howard0su@gmail.com>
src/ceph.in

index 0da8aa1e81eb732e5b3d8648365bed35c9f04e22..92fd627bb2bf28f4f37942f0c7b3779c45ffa31e 100755 (executable)
@@ -657,7 +657,7 @@ def new_style_command(parsed_args, cmdargs, target, sigdict, inbuf, verbose):
                     if outs:
                         print(outs, file=sys.stderr)
                     if outbuf:
-                        print(outbuf)
+                        print(outbuf.decode('utf-8'))
 
     return ret, outbuf, outs