From 3bcf236744b8151e16a2ccf858fa31d8bc18ed17 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 28 Jun 2017 10:13:50 -0400 Subject: [PATCH] Fix serial numbers with leading spaces Sometimes the string may have leading spaces, remove those for sane presentation. --- confluent_server/confluent/discovery/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 11e25666..6a256114 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -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