Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_ceph_osd_db: Decode bytes output to string #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lbausch
Copy link

@lbausch lbausch commented Oct 14, 2022

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

Avoids `TypeError: cannot use a string pattern on a bytes-like object`
@jg-basis
Copy link

Noted this issue and it fixed the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants