2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-28 11:57:37 +00:00

Fix another python 3 expectation

python3 needs this stringified from socket that
provides bytes.
This commit is contained in:
Jarrod Johnson 2020-03-02 16:42:42 -05:00
parent 3c1453c16b
commit 7fe47baab3

View File

@ -68,7 +68,7 @@ class CredServer(object):
if tlv[0] != 4:
client.close()
return
echotoken = client.recv(tlv[1])
echotoken = util.stringify(client.recv(tlv[1]))
cfgupdate = {nodename: {'api.key': echotoken, 'api.armed': ''}}
if apiarmed == 'continuous':
del cfgupdate[nodename]['api.armed']