Make workers admin command py3 safe
Change-Id: I05598ceea20169a625bbb47f15288e6eadbc88d2
This commit is contained in:
parent
49d4bef593
commit
da802f2828
|
@ -3238,9 +3238,10 @@ class Server(BaseClientServer):
|
||||||
fd = connection.conn.fileno()
|
fd = connection.conn.fileno()
|
||||||
ip = connection.host
|
ip = connection.host
|
||||||
client_id = connection.client_id or '-'
|
client_id = connection.client_id or '-'
|
||||||
functions = ' '.join(connection.functions)
|
functions = b' '.join(connection.functions).decode('utf8')
|
||||||
request.connection.sendRaw(("%s %s %s : %s\n" %
|
request.connection.sendRaw(("%s %s %s : %s\n" %
|
||||||
(fd, ip, client_id, functions))
|
(fd, ip, client_id.decode('utf8'),
|
||||||
|
functions))
|
||||||
.encode('utf8'))
|
.encode('utf8'))
|
||||||
request.connection.sendRaw(b'.\n')
|
request.connection.sendRaw(b'.\n')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue