URL: https://github.com/freeipa/freeipa/pull/1231
Author: stlaz
 Title: #1231: [Backport][ipa-4-6] Py3: fix ipa-replica-conncheck
Action: opened

PR body:
"""
This PR was opened automatically because PR #1212 was pushed to master and 
backport to ipa-4-6 is required.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1231/head:pr1231
git checkout pr1231
From 2aea715b079d9cff8110bd0c4e044200b1439ed5 Mon Sep 17 00:00:00 2001
From: Florence Blanc-Renaud <f...@redhat.com>
Date: Thu, 26 Oct 2017 16:38:11 +0200
Subject: [PATCH] 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
---
 install/tools/ipa-replica-conncheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install/tools/ipa-replica-conncheck b/install/tools/ipa-replica-conncheck
index beca66f68a..067e47bcbf 100755
--- a/install/tools/ipa-replica-conncheck
+++ b/install/tools/ipa-replica-conncheck
@@ -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()
 
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to