Py3: fix ipa-replica-conncheck

ipa-replica-conncheck is using the socket methods sendall()
and sendto() with str. Theses methods expect str params in
python2 but bytes in python3.

Related to
https://pagure.io/freeipa/issue/7131

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Florence Blanc-Renaud authored and Stanislav Laznicka committed 2017-11-03 15:10:28 +01:00
1 parent 59802d37d1
commit d8b3e53ce1
1 file changed
+1 -1
+1 -1
View File
@@ -290,7 +290,7 @@ class PortResponder(threading.Thread):
self._sockets = []
self._close = False
self._close_lock = threading.Lock()
self.responder_data = 'FreeIPA'
self.responder_data = b'FreeIPA'
self.ports_opened = False
self.ports_open_cond = threading.Condition()