Fix mismatch error due to map in python3

When executed by python3 the test failed on a mismatch_error
caused by the fact that map function works differently in
python3.
The review fixes the issue by rewriting the line filtering
extensions to list comprehension.

Closes-Bug: #1829475

Change-Id: Ic2db882e505e7992192767acbe12a153b2d879e9
This commit is contained in:
Martin Kopec 2019-05-16 15:24:00 +00:00
parent ab3f72b214
commit 5511ea0203
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class ExtensionsTest(base.BaseV2ComputeTest):
ext = CONF.compute_feature_enabled.api_extensions[0]
# Log extensions list
extension_list = map(lambda x: x['alias'], extensions)
extension_list = [x['alias'] for x in extensions]
LOG.debug("Nova extensions: %s", ','.join(extension_list))
if ext == 'all':