Correct the regex for parsing output
Change-Id: I9f2c72e89bd7305277d7a531c719e02423e1dccb Closes-Bug: #1651047
This commit is contained in:
@@ -125,7 +125,7 @@ class BaseBehaviors(object):
|
||||
"""
|
||||
retval = []
|
||||
if str is not None and len(str) > 0:
|
||||
rows = re.findall('\|(.*)?\n', str)
|
||||
rows = re.findall('\|(.*?)\n', str)
|
||||
# Remove header
|
||||
header_row = rows.pop(0)
|
||||
key_names = re.findall('\s*(.*?)\s*\|', header_row)
|
||||
|
||||
Reference in New Issue
Block a user