ceph-nagios-plugins icon indicating copy to clipboard operation
ceph-nagios-plugins copied to clipboard

check_ceph_osd_db: Decode bytes output to string

Open lbausch opened this issue 2 years ago • 1 comments

Avoids TypeError: cannot use a string pattern on a bytes-like object when executing re.findall().

Popen.communicate() returns bytes if the streams weren't opened in text mode, which is not the case here, as far as I can tell. See https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate

lbausch avatar Oct 14 '22 11:10 lbausch

Noted this issue and it fixed the problem for me.

jg-basis avatar Jul 30 '24 13:07 jg-basis