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:
parent
1d71cee61d
commit
f93b8da1b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user