summaryrefslogtreecommitdiff
path: root/functionaltests
diff options
context:
space:
mode:
authorJeremy Liu <liujiong@gohighsec.com>2016-12-19 15:28:32 +0800
committerJeremy Liu <liujiong@gohighsec.com>2017-04-11 14:35:42 +0000
commit777b8b68f60fcf1dd903bda0c0352e9f0dd72edf (patch)
treedc93d18f84e4a1341bd172e8eb84bef7eee4d101 /functionaltests
parent978d3b43f3feac5a6013a1deec3db290fef71225 (diff)
downloadpython-barbicanclient-777b8b68f60fcf1dd903bda0c0352e9f0dd72edf.tar.gz
Correct the regex for parsing output
Change-Id: I9f2c72e89bd7305277d7a531c719e02423e1dccb Closes-Bug: #1651047
Diffstat (limited to 'functionaltests')
-rw-r--r--functionaltests/cli/v1/behaviors/base_behaviors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functionaltests/cli/v1/behaviors/base_behaviors.py b/functionaltests/cli/v1/behaviors/base_behaviors.py
index b6f66b5..8c1dac5 100644
--- a/functionaltests/cli/v1/behaviors/base_behaviors.py
+++ b/functionaltests/cli/v1/behaviors/base_behaviors.py
@@ -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)