Skip to content

Commit

Permalink
PhysicalConsole: Tolerate invalid UTF-8 characters
Browse files Browse the repository at this point in the history
... in pexpect.spawn() calls.

Fixes: https://tracker.ceph.com/issues/62286

Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Aug 2, 2023
1 parent 7ea6953 commit bc0509c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions teuthology/orchestra/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def _pexpect_spawn(self, cmd):
p = pexpect.spawn(
cmd,
encoding='utf-8',
codec_errors="backslashreplace",
)
p.logfile_read = io.StringIO()
return p
Expand Down

0 comments on commit bc0509c

Please sign in to comment.