From 0c96882fda0578fd0e6c31f142b4ecee7afcd5d4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 24 Mar 2020 17:54:07 -0400 Subject: [PATCH] Restore Python 3 compatibility for pxe The changes accidentally broke python 3, make a bytes explicit to fix. --- confluent_server/confluent/discovery/protocols/pxe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/protocols/pxe.py b/confluent_server/confluent/discovery/protocols/pxe.py index a6818d42..d6ed5f52 100644 --- a/confluent_server/confluent/discovery/protocols/pxe.py +++ b/confluent_server/confluent/discovery/protocols/pxe.py @@ -368,7 +368,7 @@ def check_reply(node, info, packet, sock, cfg, reqview): repview = repview[28:] repview[0:1] = b'\x02' repview[1:10] = reqview[1:10] # duplicate txid, hwlen, and others - repview[10:11] = '\x80' # always set broadcast + repview[10:11] = b'\x80' # always set broadcast hwaddr = bytes(reqview[28:44]) repview[28:44] = reqview[28:44] # copy chaddr field repview[20:24] = myipn