2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Handle invalid vendor-class-identifier better

If the vci fails to decode, just ignore it and move on.
This commit is contained in:
Jarrod Johnson 2021-10-15 16:49:45 -04:00
parent 1d71cee61d
commit f93b8da1b7

View File

@ -233,7 +233,10 @@ def opts_to_dict(rq, optidx, expectype=1):
maybeztp = False
if 239 in reqdict.get(55, []):
maybeztp = True
vci = stringify(reqdict.get(60, b''))
try:
vci = stringify(reqdict.get(60, b''))
except UnicodeDecodeError:
vci = ''
if vci.startswith('cumulus-linux'):
disco['arch'] = vci.replace('cumulus-linux', '').strip()
iscumulus = True