Skip to content

Commit

Permalink
Merge pull request #1860 from xiagao/bug-1631240-sync
Browse files Browse the repository at this point in the history
virttest.guest_agent: Fix issue that qga can't get response with '\xff' on python3
  • Loading branch information
luckyh authored Dec 12, 2018
2 parents fb81491 + 6f1fff7 commit 8b85d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virttest/guest_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _read_objects(self, timeout=READ_OBJECTS_TIMEOUT):
objs = []
for line in s.splitlines():
try:
if line[0] == b'\xff':
if line[0:1] == b'\xff':
line = line[1:]
objs += [json.loads(line)]
self._log_lines(line.decode(errors="replace"))
Expand Down

0 comments on commit 8b85d88

Please sign in to comment.