diff --git a/confluent_server/confluent/discovery/protocols/pxe.py b/confluent_server/confluent/discovery/protocols/pxe.py index 033a6975..8d7bc683 100644 --- a/confluent_server/confluent/discovery/protocols/pxe.py +++ b/confluent_server/confluent/discovery/protocols/pxe.py @@ -378,6 +378,9 @@ def check_reply(node, info, packet, sock, cfg, reqview): bootfile = '{0}://{1}/confluent-public/os/{2}/boot/boot.img'.format( proto, info['netinfo']['recvip'], profile ) + if not isintstance(bootfile, bytes): + bootfile = bootfile.encode('utf8') + repview[108:108 + len(bootfile)] = bootfile repview[20:24] = myipn gateway = None netmask = None