]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph.in: read bytes from stdin
authorKefu Chai <kchai@redhat.com>
Fri, 4 Sep 2020 02:21:35 +0000 (10:21 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 16:30:55 +0000 (00:30 +0800)
commit0b8fdaa4bcdf204bd97e92b0a6241da8b9d1164a
tree0e03b42a70777aa1e0ac7f69ce082a608cb0e962
parentea7e907b3b8a23255ba5a66084c3714adeecbf85
ceph.in: read bytes from stdin

the data read from stdin is used as the input parameter for calls like
`cluster.osd_command(...)` and `cluster.mon_command`. all of them
expect a bytes `inbuf`. in Python2, this sys.stdin.read() returns a str,
and we don't differentiate str from byte back then. but we need enforce
the type now for better readablity and type correctness.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in