summaryrefslogtreecommitdiffstats
path: root/src/ceph-crash.in
diff options
context:
space:
mode:
authorDan Mick <dan.mick@redhat.com>2019-07-15 23:39:52 +0200
committerDan Mick <dan.mick@redhat.com>2019-07-15 23:39:52 +0200
commit6fd63a6abbad4054744ba980600ee3fca20768bf (patch)
tree34c7351d25f526de841f40fafa303062f481fda2 /src/ceph-crash.in
parentMerge pull request #29033 from neha-ojha/wip-add-yt (diff)
downloadceph-6fd63a6abbad4054744ba980600ee3fca20768bf.tar.xz
ceph-6fd63a6abbad4054744ba980600ee3fca20768bf.zip
ceph-crash: use open(..,'rb') to read bytes for Python3
Fixes: http://tracker.ceph.com/issues/40781 Signed-off-by: Dan Mick <dan.mick@redhat.com>
Diffstat (limited to 'src/ceph-crash.in')
-rwxr-xr-xsrc/ceph-crash.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph-crash.in b/src/ceph-crash.in
index 5bfb50c474b..f0d24dec644 100755
--- a/src/ceph-crash.in
+++ b/src/ceph-crash.in
@@ -32,7 +32,7 @@ def post_crash(path):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
- f = open(os.path.join(path, 'meta'), 'r')
+ f = open(os.path.join(path, 'meta'), 'rb')
stdout, stderr = pr.communicate(input=f.read())
rc = pr.wait()
f.close()