From f58b943cfe9dd61e302c32c3860fa5717250c54f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 6 Apr 2020 17:11:23 -0400 Subject: [PATCH] Fix mistakes in pxe handler stringify was passed a string, fix that input. Fix mispelling of isinstance. --- 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 3a83f0fb..251de4f7 100644 --- a/confluent_server/confluent/discovery/protocols/pxe.py +++ b/confluent_server/confluent/discovery/protocols/pxe.py @@ -181,7 +181,7 @@ def opts_to_dict(rq, optidx, expectype=1): maybeztp = False if 239 in reqdict.get(55, []): maybeztp = True - vci = stringify(reqdict.get(60, '')) + vci = stringify(reqdict.get(60, b'')) if vci.startswith('cumulus-linux'): disco['arch'] = vci.replace('cumulus-linux', '').strip() iscumulus = True @@ -440,7 +440,7 @@ 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): + if not isinstance(bootfile, bytes): bootfile = bootfile.encode('utf8') repview[108:108 + len(bootfile)] = bootfile repview[20:24] = myipn