py3: session.py decode server name to str

This fix is temporal because Memcache will be removed soon, so it is
more workaround than fix

https://fedorahosted.org/freeipa/ticket/4985

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Martin Basti 2017-01-11 16:54:25 +01:00
parent f2ec44f270
commit a9fec1de1a

View File

@ -828,7 +828,7 @@ class MemcacheSessionManager(SessionManager):
result = {}
stats = self.mc.get_stats()
for server in stats:
match = self.mc_server_stat_name_re.search(server[0])
match = self.mc_server_stat_name_re.search(server[0].decode())
if match:
name = match.group(1)
result[name] = server[1]