Improve parsed esel readability
Provides a minor enhancement to readability.
Change-Id: If707daab3ef82c1210b502e9002be88372af5338
Signed-off-by: Justin Thaler thalerj@us.ibm.com
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/thalerj/openbmctool.py b/thalerj/openbmctool.py
index 8feefc7..c28c82d 100755
--- a/thalerj/openbmctool.py
+++ b/thalerj/openbmctool.py
@@ -631,12 +631,15 @@
if lines[i+1].find(':') != -1:
if (len(lines[i+1].split(':')[0][1:].strip())==0):
while(len(lines[i][:lines[i].find(':')].strip())>2):
+ #has multiple lines, process and update line counter
if((i+1) <= len(lines)):
i+=1
else:
i=i-1
break
- temp = temp + lines[i][lines[i].find(':'):].strip()[:-1].strip()[:-1].strip()
+ #Append the content from the next line removing the pretty display characters
+ #Finds the first colon then starts 2 characters after, then removes all whitespace
+ temp = temp + lines[i][lines[i].find(':')+2:].strip()[:-1].strip()[:-1].strip()
if(searchTerms[term] in eselParts):
eselParts[searchTerms[term]] = eselParts[searchTerms[term]] + ", " + temp
else: