From bfbde0f7f33ec152c0e3ae03ce9fd15fd0cc90b6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 11 Oct 2019 13:36:16 -0400 Subject: [PATCH] Fix PXE protocol processing under python3 --- confluent_server/confluent/discovery/protocols/pxe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/discovery/protocols/pxe.py b/confluent_server/confluent/discovery/protocols/pxe.py index ad52bf08..ce093f0a 100644 --- a/confluent_server/confluent/discovery/protocols/pxe.py +++ b/confluent_server/confluent/discovery/protocols/pxe.py @@ -34,8 +34,8 @@ pxearchs = { def decode_uuid(rawguid): - lebytes = struct.unpack_from('HHI', buffer(rawguid[8:])) + lebytes = struct.unpack_from('HHI', rawguid[8:]) return '{0:08X}-{1:04X}-{2:04X}-{3:04X}-{4:04X}{5:08X}'.format( lebytes[0], lebytes[1], lebytes[2], bebytes[0], bebytes[1], bebytes[2]).lower()