Merge "Fixed project lists for retrieving tempest plugins"

This commit is contained in:
Jenkins 2017-06-20 22:15:53 +00:00 committed by Gerrit Code Review
commit 7226611b00

View File

@ -72,7 +72,13 @@ r = urllib.urlopen(url)
# json library won't choke.
projects = sorted(filter(is_in_openstack_namespace, json.loads(r.read()[4:])))
found_plugins = list(filter(has_tempest_plugin, projects))
# Retrieve projects having no deb, ui or spec namespace as those namespaces
# do not contains tempest plugins.
projects_list = [i for i in projects if not (i.startswith('openstack/deb-') or
i.endswith('-ui') or
i.endswith('-specs'))]
found_plugins = list(filter(has_tempest_plugin, projects_list))
# Every element of the found_plugins list begins with "openstack/".
# We drop those initial 10 octets when printing the list.