]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-crash: fix stderr handling
authorTim Serong <tserong@suse.com>
Wed, 2 Nov 2022 03:23:20 +0000 (14:23 +1100)
committerTim Serong <tserong@suse.com>
Wed, 9 Nov 2022 04:20:27 +0000 (15:20 +1100)
commit5dbac9357634b026d2d21e653362bb4a144e7264
treeb3d3e8e09a7e53f85853638bbfb10f74e8737ef9
parent7358d524d30cff69d14bb315a1382bb3c8c22945
ceph-crash: fix stderr handling

Popen.communicate() returns a tuple (stdout, stderr), and stderr
will be of type bytes, hence the need to decode it before checking
if it's an empty string or not.

Fixes: a77b47eeeb5770eeefcf4619ab2105ee7a6a003e
Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 45915540559126a652f8d9d105723584cfc63439)
src/ceph-crash.in