2
0
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:
Jarrod Johnson
2017-06-28 10:13:50 -04:00
parent ea9caa470b
commit 3bcf236744

View File

@@ -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