diff options
author | Jeremy Liu <liujiong@gohighsec.com> | 2016-12-19 15:28:32 +0800 |
---|---|---|
committer | Jeremy Liu <liujiong@gohighsec.com> | 2017-04-11 14:35:42 +0000 |
commit | 777b8b68f60fcf1dd903bda0c0352e9f0dd72edf (patch) | |
tree | dc93d18f84e4a1341bd172e8eb84bef7eee4d101 /functionaltests | |
parent | 978d3b43f3feac5a6013a1deec3db290fef71225 (diff) | |
download | python-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.py | 2 |
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) |