mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 11:30:23 +00:00
Fix mistakes in pxe handler
stringify was passed a string, fix that input. Fix mispelling of isinstance.
This commit is contained in:
parent
86628929de
commit
f58b943cfe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user