From: Kefu Chai Date: Fri, 1 Jan 2021 12:28:37 +0000 (+0800) Subject: ceph.in: do not apply rados.cstr() to a bytes X-Git-Tag: v16.1.0~133^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d777c93eeea56e6e90b88cae244a57d237cbd7c;p=ceph.git ceph.in: do not apply rados.cstr() to a bytes since the parameter is already a bytes instance, there is no need to encode it. Signed-off-by: Kefu Chai --- diff --git a/src/ceph.in b/src/ceph.in index d0d4238c242..7b21a53ab9a 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -160,7 +160,7 @@ cluster_handle = None def raw_write(buf): sys.stdout.flush() - sys.stdout.buffer.write(rados.cstr(buf, '')) + sys.stdout.buffer.write(buf) def osdids():