py3: Fix list_entries for netlink_lib

As privsep communicates with main process via socket, data passed
through this socket must be string type in Python 3. This patch converts
bytes to string, then privsep works correctly.

Change-Id: I6838d13b5acc32e939fba3c9abfea7cd483e971b
Closes-bug: #1771410
This commit is contained in:
Jakub Libosvar 2018-05-15 19:06:36 +00:00
parent ea40415d22
commit ec0760a40e
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class ConntrackManager(object):
conntrack, type_,
nl_constants.NFCT_O_PLAIN,
nl_constants.NFCT_OF_TIME)
entries.append(raw_entry.value)
entries.append(raw_entry.value.decode('utf-8'))
return nl_constants.NFCT_CB_CONTINUE
self._callback_register(nl_constants.NFCT_T_ALL,