mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-12 02:52:30 +00:00
Fix serial numbers with leading spaces
Sometimes the string may have leading spaces, remove those for sane presentation.
This commit is contained in:
@@ -448,7 +448,7 @@ def detected(info):
|
||||
else: # no nodehandler, ignore for now
|
||||
return
|
||||
try:
|
||||
snum = info['attributes']['enclosure-serial-number'][0].rstrip()
|
||||
snum = info['attributes']['enclosure-serial-number'][0].strip()
|
||||
if snum:
|
||||
info['serialnumber'] = snum
|
||||
known_serials[info['serialnumber']] = info
|
||||
|
||||
Reference in New Issue
Block a user